ILogger Interface

TegoOS

ILogger Interface
Platform independent and logging framework independent interface which loggers must implement.

Namespace: Tego.Logging
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
public interface ILogger
Public Interface ILogger
public interface class ILogger
type ILogger =  interface end

The ILogger type exposes the following members.

Properties
  NameDescription
Public propertyIsDebugEnabled
True if Debug is enabled; otherwise false
Public propertyIsErrorEnabled
True if Error is enabled; otherwise false
Public propertyIsFatalEnabled
True if Fatal is enabled; otherwise false
Public propertyIsInfoEnabled
True if Info is enabled; otherwise false
Public propertyIsWarnEnabled
True if Warn is enabled; otherwise false
Top
Methods
  NameDescription
Public methodDebug(Object)
Logs debug message
Public methodDebug(Object, Exception)
Logs debug message and exception
Public methodDebugFormat(String, Object)
Formats debug message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodDebugFormat(IFormatProvider, String, Object)
Formats debug message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodError(Object)
Logs error message
Public methodError(Object, Exception)
Logs error message and exception
Public methodErrorFormat(String, Object)
Formats error message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodErrorFormat(IFormatProvider, String, Object)
Formats error message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodFatal(Object)
Logs fatal message
Public methodFatal(Object, Exception)
Logs fatal message and exception
Public methodFatalFormat(String, Object)
Formats fatal message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodFatalFormat(IFormatProvider, String, Object)
Formats fatal message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodInfo(Object)
Logs info message
Public methodInfo(Object, Exception)
Logs info message and exception
Public methodInfoFormat(String, Object)
Formats info message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodInfoFormat(IFormatProvider, String, Object)
Formats info message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodWarn(Object)
Logs warning message
Public methodWarn(Object, Exception)
Logs warning message and exception
Public methodWarnFormat(String, Object)
Formats warning message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Public methodWarnFormat(IFormatProvider, String, Object)
Formats warning message Replaces the format items in a specified string with the string expression of a corresponding object in specific array
Top
Extension Methods
  NameDescription
Public Extension MethodDebug
Logs debug message to Logger
(Defined by LoggingExtensions.)
Public Extension MethodError
Logs error message to Logger
(Defined by LoggingExtensions.)
Public Extension MethodFatal
Logs fatal message to Logger
(Defined by LoggingExtensions.)
Public Extension MethodInfo
Logs info message to Logger
(Defined by LoggingExtensions.)
Public Extension MethodWarn
Logs warn message to Logger
(Defined by LoggingExtensions.)
Top
Remarks
Interface is styled on log4net ILog interface.
See Also