Class LogManager
- Namespace
- StockSharp.Logging
- Assembly
- StockSharp.Logging.dll
public class LogManager : Disposable, IPersistable
- Inheritance
-
LogManager
- Implements
-
IPersistable
- Extension Methods
Constructors
LogManager()
Initializes a new instance of the LogManager.
public LogManager()
LogManager(bool)
Initializes a new instance of the LogManager.
public LogManager(bool asyncMode)
Parameters
asyncMode
boolAsynchronous mode.
Properties
Application
The all application level logs recipient.
public ILogReceiver Application { get; set; }
Property Value
ClearPendingOnDispose
Clear pending messages on dispose.
public bool ClearPendingOnDispose { get; set; }
Property Value
FlushInterval
public TimeSpan FlushInterval { get; set; }
Property Value
Instance
Instance.
public static LogManager Instance { get; }
Property Value
Listeners
Messages loggers arriving from Sources.
public IList<ILogListener> Listeners { get; }
Property Value
LocalTimeZone
Local time zone to convert all incoming messages. Not use in case of null.
public TimeZoneInfo LocalTimeZone { get; set; }
Property Value
Sources
Logs sources which are listened to the event Log.
public IList<ILogSource> Sources { get; }
Property Value
Methods
DisposeManaged()
Release resources.
protected override void DisposeManaged()
Load(SettingsStorage)
Load settings.
public virtual void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public virtual void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.