public static void Add(string log) { lock (_padlock) { if (_instance == null) { _instance = new VolatileLogs(); } _instance._logs += log + "\n"; } }
public static string Get() { lock (_padlock) { if (_instance == null) { _instance = new VolatileLogs(); } return(_instance.ToString()); } }