ILogSource

Ecng.Logging

Logs source interface.

Implementa: IDisposable

Propiedades

CurrentTime
public DateTime CurrentTime { get; }
value = iLogSource.CurrentTime

Current time, which will be passed to the Time.

Id
public Guid Id { get; }
value = iLogSource.Id

The unique identifier of the source.

IsRoot
public bool IsRoot { get; }
value = iLogSource.IsRoot

Whether the source is the root (even if Parent is not equal to ).

LogLevel
public LogLevels LogLevel { get; set; }
value = iLogSource.LogLevel
iLogSource.LogLevel = value

The logging level for the source.

Name
public string Name { get; set; }
value = iLogSource.Name
iLogSource.Name = value

The source name.

Parent
public ILogSource Parent { get; set; }
value = iLogSource.Parent
iLogSource.Parent = value

Parental logs source.

Eventos

Log
public event Action<LogMessage> Log
iLogSource.Log += handler

New debug message event.

ParentRemoved
public event Action<ILogSource> ParentRemoved
iLogSource.ParentRemoved += handler

Parent removed.