Class AggregateLogger
Sends log messages to all specified loggers.
[Obsolete("Use new Lykke.Common.Log.ILogFactory")]
public class AggregateLogger : ILog, IStopable, IDisposable
- Inheritance
-
AggregateLogger
- Implements
- Inherited Members
- Extension Methods
Constructors
AggregateLogger(params ILog[])
public AggregateLogger(params ILog[] logs)
Parameters
logs
ILog[]
AggregateLogger(IEnumerable<ILog>)
public AggregateLogger(IEnumerable<ILog> logs)
Parameters
logs
IEnumerable<ILog>
Methods
AddLog(ILog)
public void AddLog(ILog log)
Parameters
log
ILog
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
RemoveAllLogs()
public void RemoveAllLogs()
RemoveLog(ILog)
public bool RemoveLog(ILog log)
Parameters
log
ILog
Returns
Stop()
public void Stop()
WriteErrorAsync(string, string, Exception, DateTime?)
public Task WriteErrorAsync(string process, string context, Exception exception, DateTime? dateTime = null)
Parameters
Returns
WriteErrorAsync(string, string, string, Exception, DateTime?)
public Task WriteErrorAsync(string component, string process, string context, Exception exception, DateTime? dateTime = null)
Parameters
Returns
WriteFatalErrorAsync(string, string, Exception, DateTime?)
public Task WriteFatalErrorAsync(string process, string context, Exception exception, DateTime? dateTime = null)
Parameters
Returns
WriteFatalErrorAsync(string, string, string, Exception, DateTime?)
public Task WriteFatalErrorAsync(string component, string process, string context, Exception exception, DateTime? dateTime = null)
Parameters
Returns
WriteInfoAsync(string, string, string, DateTime?)
public Task WriteInfoAsync(string process, string context, string info, DateTime? dateTime = null)
Parameters
Returns
WriteInfoAsync(string, string, string, string, DateTime?)
public Task WriteInfoAsync(string component, string process, string context, string info, DateTime? dateTime = null)
Parameters
Returns
WriteMonitorAsync(string, string, string, DateTime?)
public Task WriteMonitorAsync(string process, string context, string info, DateTime? dateTime = null)
Parameters
Returns
WriteMonitorAsync(string, string, string, string, DateTime?)
public Task WriteMonitorAsync(string component, string process, string context, string info, DateTime? dateTime = null)
Parameters
Returns
WriteWarningAsync(string, string, string, Exception, DateTime?)
public Task WriteWarningAsync(string process, string context, string info, Exception ex, DateTime? dateTime = null)
Parameters
Returns
WriteWarningAsync(string, string, string, DateTime?)
public Task WriteWarningAsync(string process, string context, string info, DateTime? dateTime = null)
Parameters
Returns
WriteWarningAsync(string, string, string, string, Exception, DateTime?)
public Task WriteWarningAsync(string component, string process, string context, string info, Exception ex, DateTime? dateTime = null)
Parameters
Returns
WriteWarningAsync(string, string, string, string, DateTime?)
public Task WriteWarningAsync(string component, string process, string context, string info, DateTime? dateTime = null)