BaseLogSource
The base implementation ILogSource.
Наследует: Disposable
Реализует: ILogSource, IDisposable, IPersistable
Конструкторы
Свойства
public virtual DateTime CurrentTime { get; }
value = baseLogSource.CurrentTime
Current time, which will be passed to the Time.
public virtual Guid Id { get; set; }
value = baseLogSource.Id
baseLogSource.Id = value
The unique identifier of the source.
internal bool IsLevelCacheable { get; }
value = baseLogSource.IsLevelCacheable
Whether this source keeps LogLevel and Parent where its own setters can invalidate the cache, so a walk crossing it may be remembered.
public bool IsRoot { get; set; }
value = baseLogSource.IsRoot
baseLogSource.IsRoot = value
Whether the source is the root (even if Parent is not equal to ).
internal LogLevelEntry LevelCache { get; }
value = baseLogSource.LevelCache
The level last remembered for this source, whichever set it was remembered in.
public virtual LogLevels LogLevel { get; set; }
value = baseLogSource.LogLevel
baseLogSource.LogLevel = value
The logging level for the source.
public virtual string Name { get; set; }
value = baseLogSource.Name
baseLogSource.Name = value
The source name.
public ILogSource Parent { get; set; }
value = baseLogSource.Parent
baseLogSource.Parent = value
Parental logs source.
internal LogLevelWalk WalkCache { get; }
value = baseLogSource.WalkCache
The starting point last remembered for this source, whichever set it was remembered in.
Методы
public virtual void Load(SettingsStorage storage)
baseLogSource.Load(storage)
Load settings.
- storage
- Settings storage.
protected virtual void RaiseLog(LogMessage message)
baseLogSource.RaiseLog(message)
To call the event Log.
- message
- A debug message.
public virtual void Save(SettingsStorage storage)
baseLogSource.Save(storage)
Save settings.
- storage
- Settings storage.
internal void SetCachedLogLevel(LogLevelEntry entry)
baseLogSource.SetCachedLogLevel(entry)
Remember as the effective level of this source.
- entry
- The entry, already made in the set it is to be read back in.
internal void SetCachedWalk(LogLevelEntry[] current, ILogSource from)
baseLogSource.SetCachedWalk(current, from)
Remember that the answer for this source is whatever walking from gives, because from there on a level can move without the cache being told.
- current
- The set the walk was made in.
- from
- The link the walk has to start from.
public override string ToString()
result = baseLogSource.ToString()
Returns a string representation of the tuple, with values separated by commas.
Возвращает: A string representing the tuple's values.
События
public event Action<ILogSource> ParentRemoved
baseLogSource.ParentRemoved += handler
Parent removed.