Lean  $LEAN_TAG$
QuantConnect.Logging.LogEntry Class Reference

Log entry wrapper to make logging simpler: More...

Public Member Functions

 LogEntry (string message)
 Create a default log message with the current time. More...
 
 LogEntry (string message, DateTime time, LogType type=LogType.Trace)
 Create a log entry at a specific time in the analysis (for a backtest). More...
 
override string ToString ()
 Helper override on the log entry. More...
 

Public Attributes

DateTime Time
 Time of the log entry More...
 
string Message
 Message of the log entry More...
 
LogType MessageType
 Descriptor of the message type. More...
 

Detailed Description

Log entry wrapper to make logging simpler:

Definition at line 25 of file LogEntry.cs.

Constructor & Destructor Documentation

◆ LogEntry() [1/2]

QuantConnect.Logging.LogEntry.LogEntry ( string  message)

Create a default log message with the current time.

Parameters
message

Definition at line 46 of file LogEntry.cs.

◆ LogEntry() [2/2]

QuantConnect.Logging.LogEntry.LogEntry ( string  message,
DateTime  time,
LogType  type = LogType.Trace 
)

Create a log entry at a specific time in the analysis (for a backtest).

Parameters
messageMessage for log
timeUtc time of the message
typeType of the log entry

Definition at line 59 of file LogEntry.cs.

Member Function Documentation

◆ ToString()

override string QuantConnect.Logging.LogEntry.ToString ( )

Helper override on the log entry.

Returns

Definition at line 70 of file LogEntry.cs.

Member Data Documentation

◆ Time

DateTime QuantConnect.Logging.LogEntry.Time

Time of the log entry

Definition at line 30 of file LogEntry.cs.

◆ Message

string QuantConnect.Logging.LogEntry.Message

Message of the log entry

Definition at line 35 of file LogEntry.cs.

◆ MessageType

LogType QuantConnect.Logging.LogEntry.MessageType

Descriptor of the message type.

Definition at line 40 of file LogEntry.cs.


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