ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Represents a logger that performs no logging actions. This class is a placeholder or no-op (no operation) logger, useful for cases where logging needs to be disabled. More...
Public Member Functions | |
EmptyLogger (string name) | |
Initializes a new instance of the EmptyLogger class with the specified logger name. | |
void | Debug (object message) |
A no-op method that does nothing when a debug message is logged. | |
void | Debug (object message, Exception exception) |
A no-op method that does nothing when a debug message and exception are logged. | |
void | DebugFormat (string format, params object[] args) |
A no-op method that does nothing when a formatted debug message is logged. | |
void | DebugFormat (IFormatProvider provider, string format, params object[] args) |
A no-op method that does nothing when a formatted debug message with a format provider is logged. | |
void | Error (object message) |
A no-op method that does nothing when an error message is logged. | |
void | Error (object message, Exception exception) |
A no-op method that does nothing when an error message and exception are logged. | |
void | ErrorFormat (string format, params object[] args) |
A no-op method that does nothing when a formatted error message is logged. | |
void | ErrorFormat (IFormatProvider provider, string format, params object[] args) |
A no-op method that does nothing when a formatted error message with a format provider is logged. | |
void | Fatal (object message) |
A no-op method that does nothing when a fatal message is logged. | |
void | Fatal (object message, Exception exception) |
A no-op method that does nothing when a fatal message and exception are logged. | |
void | FatalFormat (string format, params object[] args) |
A no-op method that does nothing when a formatted fatal message is logged. | |
void | FatalFormat (IFormatProvider provider, string format, params object[] args) |
A no-op method that does nothing when a formatted fatal message with a format provider is logged. | |
void | Info (object message) |
A no-op method that does nothing when an informational message is logged. | |
void | Info (object message, Exception exception) |
A no-op method that does nothing when an informational message and exception are logged. | |
void | InfoFormat (string format, params object[] args) |
A no-op method that does nothing when a formatted informational message is logged. | |
void | InfoFormat (IFormatProvider provider, string format, params object[] args) |
A no-op method that does nothing when a formatted informational message with a format provider is logged. | |
void | Warn (object message) |
A no-op method that does nothing when a warning message is logged. | |
void | Warn (object message, Exception exception) |
A no-op method that does nothing when a warning message and exception are logged. | |
void | WarnFormat (string format, params object[] args) |
A no-op method that does nothing when a formatted warning message is logged. | |
void | WarnFormat (IFormatProvider provider, string format, params object[] args) |
A no-op method that does nothing when a formatted warning message with a format provider is logged. | |
Public Member Functions inherited from XmobiTea.Logging.ILogger |
Properties | |
bool | IsDebugEnabled [get] |
Always returns false , indicating that debug logging is not enabled. | |
bool | IsErrorEnabled [get] |
Always returns false , indicating that error logging is not enabled. | |
bool | IsFatalEnabled [get] |
Always returns false , indicating that fatal logging is not enabled. | |
bool | IsInfoEnabled [get] |
Always returns false , indicating that informational logging is not enabled. | |
bool | IsWarnEnabled [get] |
Always returns false , indicating that warning logging is not enabled. | |
string | Name [get] |
Gets the name of the logger. | |
Properties inherited from XmobiTea.Logging.ILogger |
Represents a logger that performs no logging actions. This class is a placeholder or no-op (no operation) logger, useful for cases where logging needs to be disabled.
XmobiTea.Logging.Empty.EmptyLogger.EmptyLogger | ( | string | name | ) |
Initializes a new instance of the EmptyLogger class with the specified logger name.
name | The name of the logger. |
void XmobiTea.Logging.Empty.EmptyLogger.Debug | ( | object | message | ) |
A no-op method that does nothing when a debug message is logged.
message | The debug message. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Debug | ( | object | message, |
Exception | exception ) |
A no-op method that does nothing when a debug message and exception are logged.
message | The debug message. |
exception | The associated exception. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.DebugFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
A no-op method that does nothing when a formatted debug message with a format provider is logged.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.DebugFormat | ( | string | format, |
params object[] | args ) |
A no-op method that does nothing when a formatted debug message is logged.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Error | ( | object | message | ) |
A no-op method that does nothing when an error message is logged.
message | The error message. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Error | ( | object | message, |
Exception | exception ) |
A no-op method that does nothing when an error message and exception are logged.
message | The error message. |
exception | The associated exception. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.ErrorFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
A no-op method that does nothing when a formatted error message with a format provider is logged.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.ErrorFormat | ( | string | format, |
params object[] | args ) |
A no-op method that does nothing when a formatted error message is logged.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Fatal | ( | object | message | ) |
A no-op method that does nothing when a fatal message is logged.
message | The fatal message. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Fatal | ( | object | message, |
Exception | exception ) |
A no-op method that does nothing when a fatal message and exception are logged.
message | The fatal message. |
exception | The associated exception. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.FatalFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
A no-op method that does nothing when a formatted fatal message with a format provider is logged.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.FatalFormat | ( | string | format, |
params object[] | args ) |
A no-op method that does nothing when a formatted fatal message is logged.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Info | ( | object | message | ) |
A no-op method that does nothing when an informational message is logged.
message | The informational message. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Info | ( | object | message, |
Exception | exception ) |
A no-op method that does nothing when an informational message and exception are logged.
message | The informational message. |
exception | The associated exception. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.InfoFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
A no-op method that does nothing when a formatted informational message with a format provider is logged.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.InfoFormat | ( | string | format, |
params object[] | args ) |
A no-op method that does nothing when a formatted informational message is logged.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Warn | ( | object | message | ) |
A no-op method that does nothing when a warning message is logged.
message | The warning message. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.Warn | ( | object | message, |
Exception | exception ) |
A no-op method that does nothing when a warning message and exception are logged.
message | The warning message. |
exception | The associated exception. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.WarnFormat | ( | IFormatProvider | provider, |
string | format, | ||
params object[] | args ) |
A no-op method that does nothing when a formatted warning message with a format provider is logged.
provider | The format provider. |
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
void XmobiTea.Logging.Empty.EmptyLogger.WarnFormat | ( | string | format, |
params object[] | args ) |
A no-op method that does nothing when a formatted warning message is logged.
format | The format string. |
args | The arguments for the format string. |
Implements XmobiTea.Logging.ILogger.
|
get |
Always returns false
, indicating that debug logging is not enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Always returns false
, indicating that error logging is not enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Always returns false
, indicating that fatal logging is not enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Always returns false
, indicating that informational logging is not enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Always returns false
, indicating that warning logging is not enabled.
Implements XmobiTea.Logging.ILogger.
|
get |
Gets the name of the logger.
Implements XmobiTea.Logging.ILogger.