Lean  $LEAN_TAG$
QuantConnect.Logging.QueueLogHandler Class Reference

ILogHandler implementation that queues all logs and writes them when instructed. More...

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

Public Member Functions

delegate void LogEventRaised (LogEntry log)
 LOgging event delegate More...
 
 QueueLogHandler ()
 Initializes a new instance of the QueueLogHandler class. 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 void OnLogEvent (LogEntry log)
 Raise a log event safely More...
 

Properties

ConcurrentQueue< LogEntryLogs [get]
 Public access to the queue for log processing. More...
 

Events

LogEventRaised LogEvent
 Logging Event Handler More...
 

Detailed Description

ILogHandler implementation that queues all logs and writes them when instructed.

Definition at line 26 of file QueueLogHandler.cs.

Constructor & Destructor Documentation

◆ QueueLogHandler()

QuantConnect.Logging.QueueLogHandler.QueueLogHandler ( )

Initializes a new instance of the QueueLogHandler class.

Definition at line 54 of file QueueLogHandler.cs.

Member Function Documentation

◆ LogEventRaised()

delegate void QuantConnect.Logging.QueueLogHandler.LogEventRaised ( LogEntry  log)

LOgging event delegate

◆ Error()

void QuantConnect.Logging.QueueLogHandler.Error ( string  text)

Write error message to log

Parameters
textThe error text to log

Implements QuantConnect.Logging.ILogHandler.

Definition at line 65 of file QueueLogHandler.cs.

Here is the call graph for this function:

◆ Debug()

void QuantConnect.Logging.QueueLogHandler.Debug ( string  text)

Write debug message to log

Parameters
textThe debug text to log

Implements QuantConnect.Logging.ILogHandler.

Definition at line 80 of file QueueLogHandler.cs.

Here is the call graph for this function:

◆ Trace()

void QuantConnect.Logging.QueueLogHandler.Trace ( string  text)

Write debug message to log

Parameters
textThe trace text to log

Implements QuantConnect.Logging.ILogHandler.

Definition at line 93 of file QueueLogHandler.cs.

Here is the call graph for this function:

◆ Dispose()

void QuantConnect.Logging.QueueLogHandler.Dispose ( )

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

<filterpriority>2</filterpriority>

Definition at line 106 of file QueueLogHandler.cs.

◆ OnLogEvent()

virtual void QuantConnect.Logging.QueueLogHandler.OnLogEvent ( LogEntry  log)
protectedvirtual

Raise a log event safely

Definition at line 113 of file QueueLogHandler.cs.

Here is the caller graph for this function:

Property Documentation

◆ Logs

ConcurrentQueue<LogEntry> QuantConnect.Logging.QueueLogHandler.Logs
get

Public access to the queue for log processing.

Definition at line 37 of file QueueLogHandler.cs.

Event Documentation

◆ LogEvent

LogEventRaised QuantConnect.Logging.QueueLogHandler.LogEvent

Logging Event Handler

Definition at line 49 of file QueueLogHandler.cs.


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