A simple logger used to record important events and exceptions.
More...
|
static void | Init () |
| Initializes the log using the file defnied in the Filename property. More...
|
|
static void | Finish () |
| Finishes the logger.
Closes the log file. More...
|
|
static void | Write (string Message) |
| Writes the specified message to the logfile. More...
|
|
static void | Warning (string Message) |
| Writes a warning message to the log. More...
|
|
static void | Exception (string Message="", Exception E=null) |
| Writes a exception message to the log. More...
|
|
static void | Exception (Exception E=null) |
| Writes a exception to the log. More...
|
|
static void | Debug (string Message="") |
| Writes the specified debug message to the log file. More...
|
|
|
static string | Filename [get, set] |
| Gets or sets the filename for the log. More...
|
|
A simple logger used to record important events and exceptions.
static void DirectOutput.Log.Debug |
( |
string |
Message = "" | ) |
|
|
static |
Writes the specified debug message to the log file.
- Note
- The calls to this method are only executed, if the DebugLog symbol is defined. Generally this will only be active in special debug releases. The statement to define or undefine the DebugLog symbol can be found on the top of the code of this class.
- Parameters
-
Message | The message to be written to the log file. |
static void DirectOutput.Log.Exception |
( |
string |
Message = "" , |
|
|
Exception |
E = null |
|
) |
| |
|
static |
Writes a exception message to the log.
- Parameters
-
Message | The message. |
E | The Exception to be logged. |
static void DirectOutput.Log.Exception |
( |
Exception |
E = null | ) |
|
|
static |
Writes a exception to the log.
- Parameters
-
E | The Exception to be logged. |
static void DirectOutput.Log.Finish |
( |
| ) |
|
|
static |
Finishes the logger.
Closes the log file.
static void DirectOutput.Log.Init |
( |
| ) |
|
|
static |
Initializes the log using the file defnied in the Filename property.
static void DirectOutput.Log.Warning |
( |
string |
Message | ) |
|
|
static |
Writes a warning message to the log.
- Parameters
-
static void DirectOutput.Log.Write |
( |
string |
Message | ) |
|
|
static |
Writes the specified message to the logfile.
- Parameters
-
string DirectOutput.Log.Filename |
|
staticgetset |
Gets or sets the filename for the log.
The filename.
The documentation for this class was generated from the following file:
- C:/Users/Tom/Documents/GitHub/DirectOutput/DirectOutput/Log.cs