Class Logger
Assembly: RageCoop.Core.dll
Syntax
public class Logger : IDisposable
Fields
LogLevel
0:Trace, 1:Debug, 2:Info, 3:Warning, 4:Error
Declaration
Field Value
LogPath
Declaration
Field Value
UseConsole
Whether to flush messages to console instead of log file
Declaration
Field Value
Properties
Name
Declaration
public string Name { get; set; }
Property Value
Methods
Debug(String)
Declaration
public void Debug(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Dispose()
Stop backdround thread and flush all pending messages.
Declaration
Error(Exception)
Declaration
public void Error(Exception ex)
Parameters
Error(String)
Declaration
public void Error(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Error(String, Exception)
Declaration
public void Error(string message, Exception error)
Parameters
Flush()
Declaration
Info(String)
Declaration
public void Info(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Trace(String)
Declaration
public void Trace(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Warning(String)
Declaration
public void Warning(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Implements