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

A logger implementation that outputs logs to the console with various log levels. More...

Inheritance diagram for XmobiTea.Logging.Console.ConsoleLogger:
XmobiTea.Logging.ILogger

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

Detailed Description

A logger implementation that outputs logs to the console with various log levels.

Constructor & Destructor Documentation

◆ ConsoleLogger()

XmobiTea.Logging.Console.ConsoleLogger.ConsoleLogger ( string name)

Initializes a new instance of the ConsoleLogger class.

Parameters
nameThe name of the logger.

Member Function Documentation

◆ Debug() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.Debug ( object message)

Logs a debug message.

Parameters
messageThe message to log.

Implements XmobiTea.Logging.ILogger.

◆ Debug() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.Debug ( object message,
Exception exception )

Logs a debug message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implements XmobiTea.Logging.ILogger.

◆ DebugFormat() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.DebugFormat ( IFormatProvider provider,
string format,
params object[] args )

Logs a formatted debug message with an IFormatProvider.

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

Implements XmobiTea.Logging.ILogger.

◆ DebugFormat() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.DebugFormat ( string format,
params object[] args )

Logs a formatted debug message.

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

Implements XmobiTea.Logging.ILogger.

◆ Error() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.Error ( object message)

Logs an error message.

Parameters
messageThe message to log.

Implements XmobiTea.Logging.ILogger.

◆ Error() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.Error ( object message,
Exception exception )

Logs an error message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implements XmobiTea.Logging.ILogger.

◆ ErrorFormat() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.ErrorFormat ( IFormatProvider provider,
string format,
params object[] args )

Logs a formatted error message with an IFormatProvider.

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

Implements XmobiTea.Logging.ILogger.

◆ ErrorFormat() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.ErrorFormat ( string format,
params object[] args )

Logs a formatted error message.

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

Implements XmobiTea.Logging.ILogger.

◆ Fatal() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.Fatal ( object message)

Logs a fatal message.

Parameters
messageThe message to log.

Implements XmobiTea.Logging.ILogger.

◆ Fatal() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.Fatal ( object message,
Exception exception )

Logs a fatal message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implements XmobiTea.Logging.ILogger.

◆ FatalFormat() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.FatalFormat ( IFormatProvider provider,
string format,
params object[] args )

Logs a formatted fatal message with an IFormatProvider.

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

Implements XmobiTea.Logging.ILogger.

◆ FatalFormat() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.FatalFormat ( string format,
params object[] args )

Logs a formatted fatal message.

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

Implements XmobiTea.Logging.ILogger.

◆ Info() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.Info ( object message)

Logs an informational message.

Parameters
messageThe message to log.

Implements XmobiTea.Logging.ILogger.

◆ Info() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.Info ( object message,
Exception exception )

Logs an informational message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implements XmobiTea.Logging.ILogger.

◆ InfoFormat() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.InfoFormat ( IFormatProvider provider,
string format,
params object[] args )

Logs a formatted informational message with an IFormatProvider.

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

Implements XmobiTea.Logging.ILogger.

◆ InfoFormat() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.InfoFormat ( string format,
params object[] args )

Logs a formatted informational message.

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

Implements XmobiTea.Logging.ILogger.

◆ Warn() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.Warn ( object message)

Logs a warning message.

Parameters
messageThe message to log.

Implements XmobiTea.Logging.ILogger.

◆ Warn() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.Warn ( object message,
Exception exception )

Logs a warning message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implements XmobiTea.Logging.ILogger.

◆ WarnFormat() [1/2]

void XmobiTea.Logging.Console.ConsoleLogger.WarnFormat ( IFormatProvider provider,
string format,
params object[] args )

Logs a formatted warning message with an IFormatProvider.

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

Implements XmobiTea.Logging.ILogger.

◆ WarnFormat() [2/2]

void XmobiTea.Logging.Console.ConsoleLogger.WarnFormat ( string format,
params object[] args )

Logs a formatted warning message.

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

Implements XmobiTea.Logging.ILogger.

Property Documentation

◆ IsDebugEnabled

bool XmobiTea.Logging.Console.ConsoleLogger.IsDebugEnabled
get

Gets a value indicating whether debug logging is enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsErrorEnabled

bool XmobiTea.Logging.Console.ConsoleLogger.IsErrorEnabled
get

Gets a value indicating whether error logging is enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsFatalEnabled

bool XmobiTea.Logging.Console.ConsoleLogger.IsFatalEnabled
get

Gets a value indicating whether fatal logging is enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsInfoEnabled

bool XmobiTea.Logging.Console.ConsoleLogger.IsInfoEnabled
get

Gets a value indicating whether info logging is enabled.

Implements XmobiTea.Logging.ILogger.

◆ IsWarnEnabled

bool XmobiTea.Logging.Console.ConsoleLogger.IsWarnEnabled
get

Gets a value indicating whether warning logging is enabled.

Implements XmobiTea.Logging.ILogger.

◆ Name

string XmobiTea.Logging.Console.ConsoleLogger.Name
get

Gets the name of the logger.

Implements XmobiTea.Logging.ILogger.


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