Click or drag to resize

NeonLogger Class

A general purpose implementation of INeonLogger and ILogger.
Inheritance Hierarchy
SystemObject
  Neon.DiagnosticsNeonLogger

Namespace:  Neon.Diagnostics
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.1.0
Syntax
public class NeonLogger : INeonLogger, ILogger

The NeonLogger type exposes the following members.

Constructors
  NameDescription
Public methodNeonLogger
Constructs a named instance.
Top
Properties
  NameDescription
Public propertyContextId
Returns the logger's context ID or null.
Public propertyIsLogCriticalEnabled
Returns true if critical logging is enabled.
Public propertyIsLogDebugEnabled
Returns true if debug logging is enabled.
Public propertyIsLogErrorEnabled
Returns true if error logging is enabled.
Public propertyIsLogInfoEnabled
Returns true if info logging is enabled.
Public propertyIsLogSErrorEnabled
Returns true if serror logging is enabled.
Public propertyIsLogSInfoEnabled
Returns true if sinfo logging is enabled.
Public propertyIsLogTransientEnabled
Returns true if transient logging is enabled.
Public propertyIsLogWarnEnabled
Returns true if warn logging is enabled.
Top
Methods
  NameDescription
Public methodBeginScopeTState
Begins a logical operation scope.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEnabled
Checks if the given logLevel is enabled.
Public methodIsLogLevelEnabled
Indicates whether logging is enabled for a specific log level.
Public methodLogTState
Writes a log entry.
Public methodLogCritical(Object, String)
Logs a critical message.
Public methodLogCritical(Object, Exception, String)
Logs a critical message along with exception information.
Public methodLogDebug(Object, String)
Logs a debug message.
Public methodLogDebug(Object, Exception, String)
Logs a debug message along with exception information.
Public methodLogError(Object, String)
Logs an error message.
Public methodLogError(Object, Exception, String)
Logs an error message along with exception information.
Public methodLogInfo(Object, String)
Logs an info message.
Public methodLogInfo(Object, Exception, String)
Logs an info message along with exception information.
Public methodLogSError(Object, String)
Logs an serror message.
Public methodLogSError(Object, Exception, String)
Logs an serror message along with exception information.
Public methodLogSInfo(Object, String)
Logs an sinfo message.
Public methodLogSInfo(Object, Exception, String)
Logs an sinfo message along with exception information.
Public methodLogTransient(Object, String)
Logs a transient message.
Public methodLogTransient(Object, Exception, String)
Logs a transient message along with exception information.
Public methodLogWarn(Object, String)
Logs a warn message.
Public methodLogWarn(Object, Exception, String)
Logs a warn message along with exception information.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodLogCritical(FuncObject)Overloaded.
Logs a critical message retrieved via a message function.
(Defined by LogExtensions.)
Public Extension MethodLogCritical(Exception)Overloaded.
Logs a critical exception.
(Defined by LogExtensions.)
Public Extension MethodLogDebug(FuncObject)Overloaded.
Logs a debug message retrieved via a message function.
(Defined by LogExtensions.)
Public Extension MethodLogDebug(Exception)Overloaded.
Logs a debug exception.
(Defined by LogExtensions.)
Public Extension MethodLogError(FuncObject)Overloaded.
Logs an error message retrieved via a message function.
(Defined by LogExtensions.)
Public Extension MethodLogError(Exception)Overloaded.
Logs an error exception.
(Defined by LogExtensions.)
Public Extension MethodLogInfo(FuncObject)Overloaded.
Logs an informational message retrieved via a message function.
(Defined by LogExtensions.)
Public Extension MethodLogInfo(Exception)Overloaded.
Logs an info exception.
(Defined by LogExtensions.)
Public Extension MethodLogTransient(FuncObject)Overloaded.
Logs a transient message retrieved via a message function.
(Defined by LogExtensions.)
Public Extension MethodLogTransient(Exception)Overloaded.
Logs a transient exception.
(Defined by LogExtensions.)
Public Extension MethodLogWarn(FuncObject)Overloaded.
Logs a warning message retrieved via a message function.
(Defined by LogExtensions.)
Public Extension MethodLogWarn(Exception)Overloaded.
Logs a warning exception.
(Defined by LogExtensions.)
Top
See Also