ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Logging.ILogger Interface Reference

Provides a logging interface with various levels of logging. More...

Inheritance diagram for XmobiTea.Logging.ILogger:
XmobiTea.Logging.Console.ConsoleLogger XmobiTea.Logging.Empty.EmptyLogger XmobiTea.Logging.Log4Net.Log4NetLogger

Public Member Functions

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.
 

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.
 

Detailed Description

Provides a logging interface with various levels of logging.

Member Function Documentation

◆ Debug() [1/2]

void XmobiTea.Logging.ILogger.Debug ( object message)

Logs a debug message.

Parameters
messageThe message to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Debug() [2/2]

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

Logs a debug message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ DebugFormat() [1/2]

void XmobiTea.Logging.ILogger.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.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ DebugFormat() [2/2]

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

Logs a formatted debug message.

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

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Error() [1/2]

void XmobiTea.Logging.ILogger.Error ( object message)

Logs an error message.

Parameters
messageThe message to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Error() [2/2]

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

Logs an error message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ ErrorFormat() [1/2]

void XmobiTea.Logging.ILogger.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.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ ErrorFormat() [2/2]

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

Logs a formatted error message.

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

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Fatal() [1/2]

void XmobiTea.Logging.ILogger.Fatal ( object message)

Logs a fatal message.

Parameters
messageThe message to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Fatal() [2/2]

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

Logs a fatal message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ FatalFormat() [1/2]

void XmobiTea.Logging.ILogger.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.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ FatalFormat() [2/2]

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

Logs a formatted fatal message.

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

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Info() [1/2]

void XmobiTea.Logging.ILogger.Info ( object message)

Logs an informational message.

Parameters
messageThe message to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Info() [2/2]

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

Logs an informational message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ InfoFormat() [1/2]

void XmobiTea.Logging.ILogger.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.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ InfoFormat() [2/2]

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

Logs a formatted informational message.

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

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Warn() [1/2]

void XmobiTea.Logging.ILogger.Warn ( object message)

Logs a warning message.

Parameters
messageThe message to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Warn() [2/2]

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

Logs a warning message with an associated exception.

Parameters
messageThe message to log.
exceptionThe exception to log.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ WarnFormat() [1/2]

void XmobiTea.Logging.ILogger.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.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ WarnFormat() [2/2]

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

Logs a formatted warning message.

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

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

Property Documentation

◆ IsDebugEnabled

bool XmobiTea.Logging.ILogger.IsDebugEnabled
get

Gets a value indicating whether debug logging is enabled.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ IsErrorEnabled

bool XmobiTea.Logging.ILogger.IsErrorEnabled
get

Gets a value indicating whether error logging is enabled.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ IsFatalEnabled

bool XmobiTea.Logging.ILogger.IsFatalEnabled
get

Gets a value indicating whether fatal logging is enabled.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ IsInfoEnabled

bool XmobiTea.Logging.ILogger.IsInfoEnabled
get

Gets a value indicating whether info logging is enabled.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ IsWarnEnabled

bool XmobiTea.Logging.ILogger.IsWarnEnabled
get

Gets a value indicating whether warning logging is enabled.

Implemented in XmobiTea.Logging.Console.ConsoleLogger, XmobiTea.Logging.Empty.EmptyLogger, and XmobiTea.Logging.Log4Net.Log4NetLogger.

◆ Name

string XmobiTea.Logging.ILogger.Name
get

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