ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
A logger implementation that outputs logs to the console with various log levels. More...
Public Member Functions | |
ConsoleLogger (string name) | |
Initializes a new instance of the ConsoleLogger class. | |
void | Debug (object message) |
Logs a debug message. | |
void | Debug (object message, Exception exception) |
Logs a debug message with an associated exception. | |
void | DebugFormat (string format, params object[] args) |
Logs a formatted debug message. | |
void | DebugFormat (IFormatProvider provider, string format, params object[] args) |
Logs a formatted debug message with an IFormatProvider. | |
void | Error (object message) |
Logs an error message. | |
void | Error (object message, Exception exception) |
Logs an error message with an associated exception. | |
void | ErrorFormat (string format, params object[] args) |
Logs a formatted error message. | |
void | ErrorFormat (IFormatProvider provider, string format, params object[] args) |
Logs a formatted error message with an IFormatProvider. | |
void | Fatal (object message) |
Logs a fatal message. | |
void | Fatal (object message, Exception exception) |
Logs a fatal message with an associated exception. | |
void | FatalFormat (string format, params object[] args) |
Logs a formatted fatal message. | |
void | FatalFormat (IFormatProvider provider, string format, params object[] args) |
Logs a formatted fatal message with an IFormatProvider. | |
void | Info (object message) |
Logs an informational message. | |
void | Info (object message, Exception exception) |
Logs an informational message with an associated exception. | |
void | InfoFormat (string format, params object[] args) |
Logs a formatted informational message. | |
void | InfoFormat (IFormatProvider provider, string format, params object[] args) |
Logs a formatted informational message with an IFormatProvider. | |
void | Warn (object message) |
Logs a warning message. | |
void | Warn (object message, Exception exception) |
Logs a warning message with an associated exception. | |
void | WarnFormat (string format, params object[] args) |
Logs a formatted warning message. | |
void | WarnFormat (IFormatProvider provider, string format, params object[] args) |
Logs a formatted warning message with an IFormatProvider. | |
Public Member Functions inherited from XmobiTea.Logging.ILogger |
Properties | |
bool | IsDebugEnabled [get] |
Gets a value indicating whether debug logging is enabled. | |
bool | IsErrorEnabled [get] |
Gets a value indicating whether error logging is enabled. | |
bool | IsFatalEnabled [get] |
Gets a value indicating whether fatal logging is enabled. | |
bool | IsInfoEnabled [get] |
Gets a value indicating whether info logging is enabled. | |
bool | IsWarnEnabled [get] |
Gets a value indicating whether warning logging is enabled. | |
string | Name [get] |
Gets the name of the logger. | |
Properties inherited from XmobiTea.Logging.ILogger |
A logger implementation that outputs logs to the console with various log levels.
XmobiTea.Logging.Console.ConsoleLogger.ConsoleLogger | ( | string | name | ) |
Initializes a new instance of the ConsoleLogger class.
name | The name of the logger. |
void XmobiTea.Logging.Console.ConsoleLogger.Debug | ( | object | message | ) |
void XmobiTea.Logging.Console.ConsoleLogger.Debug | ( | object | message, |
Exception | exception ) |
Logs a debug message with an associated exception.
message | The message to log. |
exception | The exception to log. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.DebugFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
Logs a formatted debug message with an IFormatProvider.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.DebugFormat | ( | string | format, |
params object[] | args ) |
Logs a formatted debug message.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.Error | ( | object | message | ) |
void XmobiTea.Logging.Console.ConsoleLogger.Error | ( | object | message, |
Exception | exception ) |
Logs an error message with an associated exception.
message | The message to log. |
exception | The exception to log. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.ErrorFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
Logs a formatted error message with an IFormatProvider.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.ErrorFormat | ( | string | format, |
params object[] | args ) |
Logs a formatted error message.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.Fatal | ( | object | message | ) |
void XmobiTea.Logging.Console.ConsoleLogger.Fatal | ( | object | message, |
Exception | exception ) |
Logs a fatal message with an associated exception.
message | The message to log. |
exception | The exception to log. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.FatalFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
Logs a formatted fatal message with an IFormatProvider.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.FatalFormat | ( | string | format, |
params object[] | args ) |
Logs a formatted fatal message.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.Info | ( | object | message | ) |
Logs an informational message.
message | The message to log. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.Info | ( | object | message, |
Exception | exception ) |
Logs an informational message with an associated exception.
message | The message to log. |
exception | The exception to log. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.InfoFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
Logs a formatted informational message with an IFormatProvider.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.InfoFormat | ( | string | format, |
params object[] | args ) |
Logs a formatted informational message.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.Warn | ( | object | message | ) |
void XmobiTea.Logging.Console.ConsoleLogger.Warn | ( | object | message, |
Exception | exception ) |
Logs a warning message with an associated exception.
message | The message to log. |
exception | The exception to log. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.WarnFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
Logs a formatted warning message with an IFormatProvider.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Console.ConsoleLogger.WarnFormat | ( | string | format, |
params object[] | args ) |
Logs a formatted warning message.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
|
get |
Gets a value indicating whether debug logging is enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Gets a value indicating whether error logging is enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Gets a value indicating whether fatal logging is enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Gets a value indicating whether info logging is enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Gets a value indicating whether warning logging is enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Gets the name of the logger.
Implements XmobiTea.Logging.ILogger.