|
Lean
$LEAN_TAG$
|
Provides an implementation of ILogHandler that writes all log messages to a file on disk. More...
Public Member Functions | |
| FileLogHandler (string filepath, bool useTimestampPrefix=true) | |
| Initializes a new instance of the FileLogHandler class to write messages to the specified file path. The file will be opened using FileMode.Append More... | |
| FileLogHandler () | |
| Initializes a new instance of the FileLogHandler class using 'log.txt' for the filepath. More... | |
| void | Error (string text) |
| Write error message to log More... | |
| void | Debug (string text) |
| Write debug message to log More... | |
| void | Trace (string text) |
| Write debug message to log More... | |
| void | Dispose () |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Protected Member Functions | |
| virtual string | CreateMessage (string text, string level) |
| Creates the message to be logged More... | |
Provides an implementation of ILogHandler that writes all log messages to a file on disk.
Definition at line 25 of file FileLogHandler.cs.
| QuantConnect.Logging.FileLogHandler.FileLogHandler | ( | string | filepath, |
| bool | useTimestampPrefix = true |
||
| ) |
Initializes a new instance of the FileLogHandler class to write messages to the specified file path. The file will be opened using FileMode.Append
| filepath | The file path use to save the log messages |
| useTimestampPrefix | True to prefix each line in the log which the UTC timestamp, false otherwise |
Definition at line 40 of file FileLogHandler.cs.
| QuantConnect.Logging.FileLogHandler.FileLogHandler | ( | ) |
Initializes a new instance of the FileLogHandler class using 'log.txt' for the filepath.
Definition at line 51 of file FileLogHandler.cs.
| void QuantConnect.Logging.FileLogHandler.Error | ( | string | text | ) |
Write error message to log
| text | The error text to log |
Implements QuantConnect.Logging.ILogHandler.
Definition at line 60 of file FileLogHandler.cs.
| void QuantConnect.Logging.FileLogHandler.Debug | ( | string | text | ) |
Write debug message to log
| text | The debug text to log |
Implements QuantConnect.Logging.ILogHandler.
Definition at line 69 of file FileLogHandler.cs.
| void QuantConnect.Logging.FileLogHandler.Trace | ( | string | text | ) |
Write debug message to log
| text | The trace text to log |
Implements QuantConnect.Logging.ILogHandler.
Definition at line 78 of file FileLogHandler.cs.
| void QuantConnect.Logging.FileLogHandler.Dispose | ( | ) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
<filterpriority>2</filterpriority>
Definition at line 87 of file FileLogHandler.cs.
|
protectedvirtual |
Creates the message to be logged
| text | The text to be logged |
| level | The logging leel |
Definition at line 105 of file FileLogHandler.cs.