ConsoleMessage.commandId

Identifier given in Command.commandId if the log was generated by a command sent by the external console or -1 if the log was not related to a command sent from the external console.

class ConsoleMessage
int commandId;

Meta