Skip to main content

GenericLogger

Helper ILog implementation that reduces effort to extend or use without needing to impl each API

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
public class GenericLogger : ILog

Properties​

CaptureLogs​

View Source​
Declaration
public bool CaptureLogs { get; set; }

IsDebugEnabled​

View Source​
Declaration
public bool IsDebugEnabled { get; set; }

Fields​

OnMessage​

View Source​
Declaration
public Action<string> OnMessage

Logs​

View Source​
Declaration
public StringBuilder Logs

Methods​

OnLog(String)​

View Source​
Declaration
public virtual void OnLog(string message)
Parameters​
TypeName
System.Stringmessage

Log(Object, Exception)​

Logs the specified message.

View Source​
Declaration
public virtual void Log(object message, Exception exception)
Parameters​
TypeName
System.Objectmessage
System.Exceptionexception

LogFormat(Object, Object[])​

Logs the format.

View Source​
Declaration
public virtual void LogFormat(object message, params object[] args)
Parameters​
TypeName
System.Objectmessage
System.Object[]args

Log(Object)​

Logs the specified message.

View Source​
Declaration
public virtual void Log(object message)
Parameters​
TypeName
System.Objectmessage

Debug(Object, Exception)​

View Source​
Declaration
public void Debug(object message, Exception exception)
Parameters​
TypeName
System.Objectmessage
System.Exceptionexception

Debug(Object)​

View Source​
Declaration
public void Debug(object message)
Parameters​
TypeName
System.Objectmessage

DebugFormat(String, Object[])​

View Source​
Declaration
public void DebugFormat(string format, params object[] args)
Parameters​
TypeName
System.Stringformat
System.Object[]args

Error(Object, Exception)​

View Source​
Declaration
public void Error(object message, Exception exception)
Parameters​
TypeName
System.Objectmessage
System.Exceptionexception

Error(Object)​

View Source​
Declaration
public void Error(object message)
Parameters​
TypeName
System.Objectmessage

ErrorFormat(String, Object[])​

View Source​
Declaration
public void ErrorFormat(string format, params object[] args)
Parameters​
TypeName
System.Stringformat
System.Object[]args

Fatal(Object, Exception)​

View Source​
Declaration
public void Fatal(object message, Exception exception)
Parameters​
TypeName
System.Objectmessage
System.Exceptionexception

Fatal(Object)​

View Source​
Declaration
public void Fatal(object message)
Parameters​
TypeName
System.Objectmessage

FatalFormat(String, Object[])​

View Source​
Declaration
public void FatalFormat(string format, params object[] args)
Parameters​
TypeName
System.Stringformat
System.Object[]args

Info(Object, Exception)​

View Source​
Declaration
public void Info(object message, Exception exception)
Parameters​
TypeName
System.Objectmessage
System.Exceptionexception

Info(Object)​

View Source​
Declaration
public void Info(object message)
Parameters​
TypeName
System.Objectmessage

InfoFormat(String, Object[])​

View Source​
Declaration
public void InfoFormat(string format, params object[] args)
Parameters​
TypeName
System.Stringformat
System.Object[]args

Warn(Object, Exception)​

View Source​
Declaration
public void Warn(object message, Exception exception)
Parameters​
TypeName
System.Objectmessage
System.Exceptionexception

Warn(Object)​

View Source​
Declaration
public void Warn(object message)
Parameters​
TypeName
System.Objectmessage

WarnFormat(String, Object[])​

View Source​
Declaration
public void WarnFormat(string format, params object[] args)
Parameters​
TypeName
System.Stringformat
System.Object[]args

Implements​