Click or drag to resize

CoreLog Class

Singleton object that provides functionality to log messages to the server log . Messages are NOT delivered to the client.
Inheritance Hierarchy
SystemObject
  AxiomCore2.LogCoreLog

Namespace: AxiomCore2.Log
Assembly: Canary.Axiom.Session (in Canary.Axiom.Session.exe) Version: 25.6.0.25344+3070493948bf7d32a86bd3e9a8bcf4cc9a5b1929
Syntax
C#
public class CoreLog : ILog

The CoreLog type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberInstance Static property used to get the instance of the CoreLog class.
Public propertyTraceLevel Gets the logging level currently set for this logger.
Top
Methods
 NameDescription
Public methodDebug Log debug message.
Public methodError(String) Log an error message.
Public methodError(String, Exception) Log an error message.
Public methodFatal(String) Log a fatal error message.
Public methodFatal(String, Exception) Log a fatal error message and exception.
Public methodFatal(String, Exception, Boolean) Log a fatal error message with an exception and also send an email.
Public methodInfo Log an info message.
Public methodTrace Set the trace logging level.
Public methodWarn(String) Log a warning message.
Public methodWarn(String, Exception) Log a warning message.
Top
Example
Use the static Instance property to access this class.
C#
CoreLog.Instance.Info("Hello World");
This will log "Hello World" in Canary message log.
See Also