Table of Contents

Class LogManager

Namespace
StockSharp.Logging
Assembly
StockSharp.Logging.dll

Messages logging manager that monitors the Log event and forwards messages to the Listeners.

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 bool

Asynchronous mode.

Properties

Application

The all application level logs recipient.

public ILogReceiver Application { get; set; }

Property Value

ILogReceiver

ClearPendingOnDispose

Clear pending messages on dispose.

public bool ClearPendingOnDispose { get; set; }

Property Value

bool

FlushInterval

Sending interval of messages collected from Sources to the Listeners. The default is 500 ms.

public TimeSpan FlushInterval { get; set; }

Property Value

TimeSpan

Instance

Instance.

public static LogManager Instance { get; }

Property Value

LogManager

Listeners

Messages loggers arriving from Sources.

public IList<ILogListener> Listeners { get; }

Property Value

IList<ILogListener>

LocalTimeZone

Local time zone to convert all incoming messages. Not use in case of null.

public TimeZoneInfo LocalTimeZone { get; set; }

Property Value

TimeZoneInfo

Sources

Logs sources which are listened to the event Log.

public IList<ILogSource> Sources { get; }

Property Value

IList<ILogSource>

Methods

DisposeManaged()

Release resources.

protected override void DisposeManaged()

Load(SettingsStorage)

Load settings.

public virtual void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public virtual void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.