Class DefaultLog
Default log implementation.
This log supports only error, fatal and warn
levels.
Implements
Inherited Members
Namespace: FixAntenna.Common.Logging
Assembly: FixAntenna.Common.dll
Syntax
public class DefaultLog : BaseLog, ILog
Properties
IsDebugEnabled
Always returns false.
Declaration
public bool IsDebugEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
IsErrorEnabled
Always returns true.
Declaration
public bool IsErrorEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
IsFatalEnabled
Always returns true.
Declaration
public bool IsFatalEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
IsInfoEnabled
Check whether this category is enabled for the INFO Level.
Declaration
public bool IsInfoEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTraceEnabled
Always returns false.
Declaration
public bool IsTraceEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
IsWarnEnabled
Always returns true.
Declaration
public bool IsWarnEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
See Also
Methods
Debug(Object)
Log a message object with the DEBUG level.
Declaration
public void Debug(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Debug(Object, Exception)
Log a message object with the DEBUG level including the stack trace of the Throwable.
Declaration
public void Debug(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Error(Object)
Writes error message to err output stream.
Declaration
public void Error(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message |
See Also
Error(Object, Exception)
Writes error message to err output stream.
Declaration
public void Error(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | |
System.Exception | throwable |
See Also
Fatal(Object)
Writes error message to err output stream.
Declaration
public void Fatal(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message |
See Also
Fatal(Object, Exception)
Writes error message to err output stream.
Declaration
public void Fatal(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | |
System.Exception | throwable |
See Also
Info(Object)
Log a message object with the INFO level.
Declaration
public void Info(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Info(Object, Exception)
Log a message object with the INFO level including the stack trace of the Throwable.
Declaration
public void Info(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Trace(Object)
Log a message object with the TRACE level.
Declaration
public void Trace(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
Trace(Object, Exception)
Log a message object with the trace level including the stack trace of the Throwable.
Declaration
public void Trace(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | the message |
System.Exception | throwable | the error |
Warn(Object)
Writes error message to output stream.
Declaration
public void Warn(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message |
See Also
Warn(Object, Exception)
Writes error message to output stream.
Declaration
public void Warn(object message, Exception throwable)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | |
System.Exception | throwable |