ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Logging.Empty.EmptyLogger Class Referencesealed

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...

Inheritance diagram for XmobiTea.Logging.Empty.EmptyLogger:
XmobiTea.Logging.ILogger

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ EmptyLogger()

XmobiTea.Logging.Empty.EmptyLogger.EmptyLogger ( string name)

Initializes a new instance of the EmptyLogger class with the specified logger name.

Parameters
nameThe name of the logger.

Member Function Documentation

◆ Debug() [1/2]

void XmobiTea.Logging.Empty.EmptyLogger.Debug ( object message)

A no-op method that does nothing when a debug message is logged.

Parameters
messageThe debug message.

Implements XmobiTea.Logging.ILogger.

◆ Debug() [2/2]

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.

Parameters
messageThe debug message.
exceptionThe associated exception.

Implements XmobiTea.Logging.ILogger.

◆ DebugFormat() [1/2]

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.

Parameters
providerThe format provider.
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ DebugFormat() [2/2]

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.

Parameters
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ Error() [1/2]

void XmobiTea.Logging.Empty.EmptyLogger.Error ( object message)

A no-op method that does nothing when an error message is logged.

Parameters
messageThe error message.

Implements XmobiTea.Logging.ILogger.

◆ Error() [2/2]

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.

Parameters
messageThe error message.
exceptionThe associated exception.

Implements XmobiTea.Logging.ILogger.

◆ ErrorFormat() [1/2]

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.

Parameters
providerThe format provider.
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ ErrorFormat() [2/2]

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.

Parameters
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ Fatal() [1/2]

void XmobiTea.Logging.Empty.EmptyLogger.Fatal ( object message)

A no-op method that does nothing when a fatal message is logged.

Parameters
messageThe fatal message.

Implements XmobiTea.Logging.ILogger.

◆ Fatal() [2/2]

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.

Parameters
messageThe fatal message.
exceptionThe associated exception.

Implements XmobiTea.Logging.ILogger.

◆ FatalFormat() [1/2]

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.

Parameters
providerThe format provider.
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ FatalFormat() [2/2]

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.

Parameters
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ Info() [1/2]

void XmobiTea.Logging.Empty.EmptyLogger.Info ( object message)

A no-op method that does nothing when an informational message is logged.

Parameters
messageThe informational message.

Implements XmobiTea.Logging.ILogger.

◆ Info() [2/2]

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.

Parameters
messageThe informational message.
exceptionThe associated exception.

Implements XmobiTea.Logging.ILogger.

◆ InfoFormat() [1/2]

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.

Parameters
providerThe format provider.
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ InfoFormat() [2/2]

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.

Parameters
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ Warn() [1/2]

void XmobiTea.Logging.Empty.EmptyLogger.Warn ( object message)

A no-op method that does nothing when a warning message is logged.

Parameters
messageThe warning message.

Implements XmobiTea.Logging.ILogger.

◆ Warn() [2/2]

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.

Parameters
messageThe warning message.
exceptionThe associated exception.

Implements XmobiTea.Logging.ILogger.

◆ WarnFormat() [1/2]

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.

Parameters
providerThe format provider.
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

◆ WarnFormat() [2/2]

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.

Parameters
formatThe format string.
argsThe arguments for the format string.

Implements XmobiTea.Logging.ILogger.

Property Documentation

◆ IsDebugEnabled

bool XmobiTea.Logging.Empty.EmptyLogger.IsDebugEnabled
get

Always returns false, indicating that debug logging is not enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsErrorEnabled

bool XmobiTea.Logging.Empty.EmptyLogger.IsErrorEnabled
get

Always returns false, indicating that error logging is not enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsFatalEnabled

bool XmobiTea.Logging.Empty.EmptyLogger.IsFatalEnabled
get

Always returns false, indicating that fatal logging is not enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsInfoEnabled

bool XmobiTea.Logging.Empty.EmptyLogger.IsInfoEnabled
get

Always returns false, indicating that informational logging is not enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsWarnEnabled

bool XmobiTea.Logging.Empty.EmptyLogger.IsWarnEnabled
get

Always returns false, indicating that warning logging is not enabled.

Implements XmobiTea.Logging.ILogger.

◆ Name

string XmobiTea.Logging.Empty.EmptyLogger.Name
get

Gets the name of the logger.

Implements XmobiTea.Logging.ILogger.


The documentation for this class was generated from the following file: