ILog
Logs a message in a running application
Assembly: ServiceStack.Interfaces.dll
View Source
public interface ILog
Properties
IsDebugEnabled
Gets or sets a value indicating whether this instance is debug enabled.
View Source
bool IsDebugEnabled { get; }
Methods
Debug(Object)
Logs a Debug message.
View Source
void Debug(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
|
Debug(Object, Exception)
Logs a Debug message and exception.
View Source
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.
View Source
void DebugFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
|
| System.Object[]
| args | The args.
|
Error(Object)
Logs a Error message.
View Source
void Error(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
|
Error(Object, Exception)
Logs a Error message and exception.
View Source
void Error(object message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
|
| System.Exception
| exception | The exception.
|
ErrorFormat(String, Object[])
Logs a Error format message.
View Source
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.
View Source
void Fatal(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
|
Fatal(Object, Exception)
Logs a Fatal message and exception.
View Source
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.
View Source
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.
View Source
void Info(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
|
Info(Object, Exception)
Logs an Info message and exception.
View Source
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.
View Source
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.
View Source
void Warn(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
|
Warn(Object, Exception)
Logs a Warning message and exception.
View Source
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.
View Source
void WarnFormat(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format. |
|
| System.Object[]
| args | The args.
|