Click or drag to resize

Logger Class

Default logger, will get the exported Serilog configuration and use that
Inheritance Hierarchy
SystemObject
  Crosser.LoggerLogger

Namespace:  Crosser.Logger
Assembly:  Crosser.Logger (in Crosser.Logger.dll) Version: 0.0.4
Syntax
C#
public class Logger : ILogger

The Logger type exposes the following members.

Constructors
  NameDescription
Public methodLogger
Ctor
Top
Methods
  NameDescription
Public methodDebug(String, Object)
Log to Serilog sinks using the debug level
Public methodDebug(Exception, String, Object)
Log to Serilog sinks using the debug level
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodError(String, Object)
Log to Serilog sinks using the error level
Public methodError(Exception, String, Object)
Log to Serilog sinks using the error level
Public methodFatal(String, Object)
Log to Serilog sinks using the fatal level
Public methodFatal(Exception, String, Object)
Log to Serilog sinks using the fatal level
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 methodGetLogEventLevel
Return the current LogEventLevel
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInformation(String, Object)
Log to Serilog sinks using the information level
Public methodInformation(Exception, String, Object)
Log to Serilog sinks using the information level
Public methodLevelEnabled
Check if a specific LogEventLevel is enabled
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetLogEventLevel
Sets the LogEventLevel
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWarning(String, Object)
Log to Serilog sinks using the warning level
Public methodWarning(Exception, String, Object)
Log to Serilog sinks using the warning level
Public methodVerbose(String, Object)
Log to Serilog sinks using the verbose level
Public methodVerbose(Exception, String, Object)
Log to Serilog sinks using the verbose level
Top
Fields
  NameDescription
Protected fieldLogSwicth
The log-switch can be used to change LogEventLevel at runtime. Change by calling SetLogEventLevel(LogEventLevel)
Top
See Also