Skip to main content

TestLogger

Tests logger which stores all log messages in a member list which can be examined later

Made public so its testable

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

Properties

IsDebugEnabled

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

Methods

GetLogs()

View Source
Declaration
public static IList<KeyValuePair<TestLogger.Levels, string>> GetLogs()
Returns

System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<ServiceStack.Logging.TestLogger.Levels,System.String>>

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