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