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
Type | Name |
---|---|
System.String | message |
Log(Object, Exception)
Logs the specified message.
View Source
Declaration
public virtual void Log(object message, Exception exception)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Exception | exception |
LogFormat(Object, Object[])
Logs the format.
View Source
Declaration
public virtual void LogFormat(object message, params object[] args)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Object[] | args |
Log(Object)
Logs the specified message.
View Source
Declaration
public virtual void Log(object message)
Parameters
Type | Name |
---|---|
System.Object | message |
Debug(Object, Exception)
View Source
Declaration
public void Debug(object message, Exception exception)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Exception | exception |
Debug(Object)
View Source
Declaration
public void Debug(object message)
Parameters
Type | Name |
---|---|
System.Object | message |
DebugFormat(String, Object[])
View Source
Declaration
public void DebugFormat(string format, params object[] args)
Parameters
Type | Name |
---|---|
System.String | format |
System.Object[] | args |
Error(Object, Exception)
View Source
Declaration
public void Error(object message, Exception exception)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Exception | exception |
Error(Object)
View Source
Declaration
public void Error(object message)
Parameters
Type | Name |
---|---|
System.Object | message |
ErrorFormat(String, Object[])
View Source
Declaration
public void ErrorFormat(string format, params object[] args)
Parameters
Type | Name |
---|---|
System.String | format |
System.Object[] | args |
Fatal(Object, Exception)
View Source
Declaration
public void Fatal(object message, Exception exception)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Exception | exception |
Fatal(Object)
View Source
Declaration
public void Fatal(object message)
Parameters
Type | Name |
---|---|
System.Object | message |
FatalFormat(String, Object[])
View Source
Declaration
public void FatalFormat(string format, params object[] args)
Parameters
Type | Name |
---|---|
System.String | format |
System.Object[] | args |
Info(Object, Exception)
View Source
Declaration
public void Info(object message, Exception exception)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Exception | exception |
Info(Object)
View Source
Declaration
public void Info(object message)
Parameters
Type | Name |
---|---|
System.Object | message |
InfoFormat(String, Object[])
View Source
Declaration
public void InfoFormat(string format, params object[] args)
Parameters
Type | Name |
---|---|
System.String | format |
System.Object[] | args |
Warn(Object, Exception)
View Source
Declaration
public void Warn(object message, Exception exception)
Parameters
Type | Name |
---|---|
System.Object | message |
System.Exception | exception |
Warn(Object)
View Source
Declaration
public void Warn(object message)
Parameters
Type | Name |
---|---|
System.Object | message |
WarnFormat(String, Object[])
View Source
Declaration
public void WarnFormat(string format, params object[] args)
Parameters
Type | Name |
---|---|
System.String | format |
System.Object[] | args |