Lean  $LEAN_TAG$
QuantConnect.Logging.ConsoleLogHandler Class Reference

ILogHandler implementation that writes log output to console. More...

Inheritance diagram for QuantConnect.Logging.ConsoleLogHandler:
[legend]

Public Member Functions

 ConsoleLogHandler ()
 Initializes a new instance of the QuantConnect.Logging.ConsoleLogHandler class. More...
 
 ConsoleLogHandler (string dateFormat=DefaultDateFormat)
 Initializes a new instance of the QuantConnect.Logging.ConsoleLogHandler class. More...
 
virtual void Error (string text)
 Write error message to log More...
 
virtual void Debug (string text)
 Write debug message to log More...
 
virtual 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...
 

Detailed Description

ILogHandler implementation that writes log output to console.

Definition at line 25 of file ConsoleLogHandler.cs.

Constructor & Destructor Documentation

◆ ConsoleLogHandler() [1/2]

QuantConnect.Logging.ConsoleLogHandler.ConsoleLogHandler ( )

Initializes a new instance of the QuantConnect.Logging.ConsoleLogHandler class.

Definition at line 35 of file ConsoleLogHandler.cs.

◆ ConsoleLogHandler() [2/2]

QuantConnect.Logging.ConsoleLogHandler.ConsoleLogHandler ( string  dateFormat = DefaultDateFormat)

Initializes a new instance of the QuantConnect.Logging.ConsoleLogHandler class.

Parameters
dateFormatSpecifies the date format to use when writing log messages to the console window

Definition at line 44 of file ConsoleLogHandler.cs.

Member Function Documentation

◆ Error()

virtual void QuantConnect.Logging.ConsoleLogHandler.Error ( string  text)
virtual

Write error message to log

Parameters
textThe error text to log

Implements QuantConnect.Logging.ILogHandler.

Definition at line 57 of file ConsoleLogHandler.cs.

◆ Debug()

virtual void QuantConnect.Logging.ConsoleLogHandler.Debug ( string  text)
virtual

Write debug message to log

Parameters
textThe debug text to log

Implements QuantConnect.Logging.ILogHandler.

Reimplemented in QuantConnect.Logging.ConsoleErrorLogHandler.

Definition at line 72 of file ConsoleLogHandler.cs.

◆ Trace()

virtual void QuantConnect.Logging.ConsoleLogHandler.Trace ( string  text)
virtual

Write debug message to log

Parameters
textThe trace text to log

Implements QuantConnect.Logging.ILogHandler.

Reimplemented in QuantConnect.Logging.ConsoleErrorLogHandler.

Definition at line 81 of file ConsoleLogHandler.cs.

◆ Dispose()

void QuantConnect.Logging.ConsoleLogHandler.Dispose ( )

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

<filterpriority>2</filterpriority>

Definition at line 90 of file ConsoleLogHandler.cs.


The documentation for this class was generated from the following file: