Skip to main content

ConsoleLogger

Default logger is to Console.WriteLine

Made public so its testable

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public class ConsoleLogger : ILog

Properties​

IsDebugEnabled​

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

Methods​

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​