Represents a logger object.
More...
|
| LOG (string path, string fileName) |
| Constructor.
|
|
| LOG (string path, string fileName, bool isEnabled, bool enforceWriteline) |
| Constructor.
|
|
void | Start () |
| Starts the logging.
|
|
void | Stop () |
| Stops the logging.
|
|
void | Error (string text) |
| Logs an error message.
|
|
void | Warning (string text) |
| Logs a warning message.
|
|
void | Write (string text) |
| Logs a message.
|
|
void | Write (Exception ex) |
| Logs an exception.
|
|
|
bool | IsEnabled [get, set] |
| Is the logging enabled.
|
|
|
static LogProcessed | sLogProcessed |
| Static event of log processed.
|
|
LogProcessed | LogProcessed |
| Event of log processed.
|
|
|
void | Dispatcher_Processed (object obj) |
| Runs when the dispatcher fires a process event. Processes a log message. Writes to file.
|
|
|
Dispatch.Dispatcher | dispatcher |
| The dispatcher for process log events.
|
|
string | path = "" |
| Path of file.
|
|
string | fileName = "" |
| Name of the file.
|
|
DateTime | latestLog = new DateTime(1900, 1, 1) |
| Date time of the latest log.
|
|
System.IO.TextWriter | tw |
| Text writer of logs.
|
|
bool | isEnabled = false |
| Is the logging enabled.
|
|
bool | enforceWriteline = false |
| When true the log message is writes to console.
|
|
Represents a logger object.
◆ LOG() [1/2]
Tools.LOG.LOG |
( |
string | path, |
|
|
string | fileName ) |
Constructor.
- Parameters
-
path | The path of file. |
fileName | The name of file. |
◆ LOG() [2/2]
Tools.LOG.LOG |
( |
string | path, |
|
|
string | fileName, |
|
|
bool | isEnabled, |
|
|
bool | enforceWriteline ) |
Constructor.
- Parameters
-
path | The path of file. |
fileName | The name of file. |
isEnabled | Is the logging enabled. |
enforceWriteline | When true the log message is writes to console. |
◆ Dispatcher_Processed()
void Tools.LOG.Dispatcher_Processed |
( |
object | obj | ) |
|
|
private |
Runs when the dispatcher fires a process event. Processes a log message. Writes to file.
- Parameters
-
◆ Error()
void Tools.LOG.Error |
( |
string | text | ) |
|
Logs an error message.
- Parameters
-
◆ OnLogProcessed()
static void Tools.LOG.OnLogProcessed |
( |
LOG | log, |
|
|
string | text ) |
|
static |
Fires log processed message.
- Parameters
-
log | Object of logger. |
text | Text of log. |
◆ Warning()
void Tools.LOG.Warning |
( |
string | text | ) |
|
Logs a warning message.
- Parameters
-
◆ Write() [1/2]
void Tools.LOG.Write |
( |
Exception | ex | ) |
|
Logs an exception.
- Parameters
-
◆ Write() [2/2]
void Tools.LOG.Write |
( |
string | text | ) |
|
Logs a message.
- Parameters
-
The documentation for this class was generated from the following file: