Skip to content

LogPacket

QuantConnect.Packets.LogPacket

LogPacket()
LogPacket(algorithm_id: str, message: str)

Bases: Packet

Simple log message instruction from the lean engine.

Signature descriptions:

  • Default constructor for JSON

  • Create a new instance of the notify Log packet:

message

message: str

Log message to the users console:

algorithm_id

algorithm_id: str

Algorithm Id requesting this logging

type

type: PacketType

Packet type defined by a string enum

channel

channel: str

User unique specific channel endpoint to send the packets