Table of Contents

Class AggregateLogger

Namespace
Common.Log
Assembly
Lykke.Common.dll

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

bool

Stop()

public void Stop()

WriteErrorAsync(string, string, Exception, DateTime?)

public Task WriteErrorAsync(string process, string context, Exception exception, DateTime? dateTime = null)

Parameters

process string
context string
exception Exception
dateTime DateTime?

Returns

Task

WriteErrorAsync(string, string, string, Exception, DateTime?)

public Task WriteErrorAsync(string component, string process, string context, Exception exception, DateTime? dateTime = null)

Parameters

component string
process string
context string
exception Exception
dateTime DateTime?

Returns

Task

WriteFatalErrorAsync(string, string, Exception, DateTime?)

public Task WriteFatalErrorAsync(string process, string context, Exception exception, DateTime? dateTime = null)

Parameters

process string
context string
exception Exception
dateTime DateTime?

Returns

Task

WriteFatalErrorAsync(string, string, string, Exception, DateTime?)

public Task WriteFatalErrorAsync(string component, string process, string context, Exception exception, DateTime? dateTime = null)

Parameters

component string
process string
context string
exception Exception
dateTime DateTime?

Returns

Task

WriteInfoAsync(string, string, string, DateTime?)

public Task WriteInfoAsync(string process, string context, string info, DateTime? dateTime = null)

Parameters

process string
context string
info string
dateTime DateTime?

Returns

Task

WriteInfoAsync(string, string, string, string, DateTime?)

public Task WriteInfoAsync(string component, string process, string context, string info, DateTime? dateTime = null)

Parameters

component string
process string
context string
info string
dateTime DateTime?

Returns

Task

WriteMonitorAsync(string, string, string, DateTime?)

public Task WriteMonitorAsync(string process, string context, string info, DateTime? dateTime = null)

Parameters

process string
context string
info string
dateTime DateTime?

Returns

Task

WriteMonitorAsync(string, string, string, string, DateTime?)

public Task WriteMonitorAsync(string component, string process, string context, string info, DateTime? dateTime = null)

Parameters

component string
process string
context string
info string
dateTime DateTime?

Returns

Task

WriteWarningAsync(string, string, string, Exception, DateTime?)

public Task WriteWarningAsync(string process, string context, string info, Exception ex, DateTime? dateTime = null)

Parameters

process string
context string
info string
ex Exception
dateTime DateTime?

Returns

Task

WriteWarningAsync(string, string, string, DateTime?)

public Task WriteWarningAsync(string process, string context, string info, DateTime? dateTime = null)

Parameters

process string
context string
info string
dateTime DateTime?

Returns

Task

WriteWarningAsync(string, string, string, string, Exception, DateTime?)

public Task WriteWarningAsync(string component, string process, string context, string info, Exception ex, DateTime? dateTime = null)

Parameters

component string
process string
context string
info string
ex Exception
dateTime DateTime?

Returns

Task

WriteWarningAsync(string, string, string, string, DateTime?)

public Task WriteWarningAsync(string component, string process, string context, string info, DateTime? dateTime = null)

Parameters

component string
process string
context string
info string
dateTime DateTime?

Returns

Task