LogEntry
QuantConnect.Logging.LogEntry
LogEntry(message: str)
LogEntry(
message: str,
time: Union[datetime, date],
type: LogType = ...,
)
Bases: Object
Log entry wrapper to make logging simpler:
Signature descriptions:
-
Create a default log message with the current time.
-
Create a log entry at a specific time in the analysis (for a backtest).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Message for log |
required |
time
|
Optional[Union[datetime, date]]
|
Utc time of the message |
None
|
type
|
Optional[LogType]
|
Type of the log entry |
...
|
time
time: datetime
Time of the log entry
message
message: str
Message of the log entry
to_string
to_string() -> str
Helper override on the log entry.