Class BaseLogSource
- Namespace
- StockSharp.Logging
- Assembly
- StockSharp.Logging.dll
The base implementation ILogSource.
public abstract class BaseLogSource : Disposable, ILogSource, IDisposable, IPersistable- Inheritance
- 
      
      
      BaseLogSource
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
BaseLogSource()
Initialize BaseLogSource.
protected BaseLogSource()Properties
CurrentTime
Current time, which will be passed to the Time.
[Browsable(false)]
public virtual DateTimeOffset CurrentTime { get; }Property Value
Id
The unique identifier of the source.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Id", Description = "Id", GroupName = "Logging", Order = 1000)]
public virtual Guid Id { get; set; }Property Value
IsRoot
[Browsable(false)]
public bool IsRoot { get; set; }Property Value
LogLevel
The logging level for the source.
[Display(ResourceType = typeof(LocalizedStrings), Name = "LogLevel", Description = "LogLevelDot", GroupName = "Logging", Order = 1001)]
public virtual LogLevels LogLevel { get; set; }Property Value
Name
The source name.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Name", Description = "LogSourceName", GroupName = "Logging", Order = 1001)]
public virtual string Name { get; set; }Property Value
Parent
Parental logs source.
[Browsable(false)]
public ILogSource Parent { get; set; }Property Value
Methods
Load(SettingsStorage)
Load settings.
public virtual void Load(SettingsStorage storage)Parameters
- storageSettingsStorage
- Settings storage. 
RaiseLog(LogMessage)
To call the event Log.
protected virtual void RaiseLog(LogMessage message)Parameters
- messageLogMessage
- A debug message. 
Save(SettingsStorage)
Save settings.
public virtual void Save(SettingsStorage storage)Parameters
- storageSettingsStorage
- Settings storage. 
ToString()
public override string ToString()Returns
Events
Log
New debug message event.
public event Action<LogMessage> LogEvent Type
ParentRemoved
Parent removed.
public event Action<ILogSource> ParentRemoved