Class Log
The logging class for World Modeler.
Inherited Members
Namespace: Quantellia.WMServer.Logger
Assembly: WMServer.dll
Syntax
public class Log
Remarks
Log instances are static and stored in the private
Properties
Level
The level at which log messages will be written out for this Log instance.
Declaration
public int Level { get; set; }
Property Value
Type | Description |
---|---|
int |
ShowSourceRef
Show the source file and line number from which the log entyry is being called.
Declaration
public bool ShowSourceRef { get; set; }
Property Value
Type | Description |
---|---|
bool |
ShowTime
Show the time of each log entry.
Declaration
public bool ShowTime { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Init(ConfigurationManager)
Initialize the logger.
Declaration
public static void Init(ConfigurationManager configMgr)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationManager | configMgr |
Remarks
The logging configuration is read from the application's ConfigurationManager.
Throw(string, int, Exception?)
Declaration
public static void Throw(string message, int status = -1, Exception? innerException = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
int | status | |
Exception | innerException |
Write(string, LogLevel)
Declaration
public static void Write(string message, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
string | message | |
LogLevel | level |