Class Log
The logger adapter for ServiceStack.
Inheritance
Implements
Inherited Members
Namespace: Kephas.ServiceStack.Logging
Assembly: Kephas.ServiceStack.dll
Syntax
public class Log : ILog
Constructors
| Improve this Doc View SourceLog(ILogger)
Initializes a new instance of the Log class.
Declaration
public Log(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
Properties
| Improve this Doc View SourceIsDebugEnabled
Gets a value indicating whether the debug is enabled.
Declaration
public bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this Doc View SourceDebug(Object)
Logs a Debug message.
Declaration
public void Debug(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Debug(Object, Exception)
Logs a Debug message and exception.
Declaration
public void Debug(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
System.Exception | exception | The exception. |
DebugFormat(String, Object[])
Logs a Debug format message.
Declaration
public void DebugFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.Object[] | args | The args. |
Error(Object)
Logs an Error message.
Declaration
public void Error(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Error(Object, Exception)
Logs an Error message and exception.
Declaration
public void Error(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
System.Exception | exception | The exception. |
ErrorFormat(String, Object[])
Logs an Error format message.
Declaration
public void ErrorFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.Object[] | args | The args. |
Fatal(Object)
Logs a Fatal message.
Declaration
public void Fatal(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Fatal(Object, Exception)
Logs a Fatal message and exception.
Declaration
public void Fatal(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
System.Exception | exception | The exception. |
FatalFormat(String, Object[])
Logs a Error format message.
Declaration
public void FatalFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.Object[] | args | The args. |
Info(Object)
Logs an Info message and exception.
Declaration
public void Info(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Info(Object, Exception)
Logs an Info message and exception.
Declaration
public void Info(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
System.Exception | exception | The exception. |
InfoFormat(String, Object[])
Logs an Info format message.
Declaration
public void InfoFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.Object[] | args | The args. |
Warn(Object)
Logs a Warning message.
Declaration
public void Warn(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Warn(Object, Exception)
Logs a Warning message and exception.
Declaration
public void Warn(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
System.Exception | exception | The exception. |
WarnFormat(String, Object[])
Logs a Warning format message.
Declaration
public void WarnFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
System.Object[] | args | The args. |