Log.commandId

Identifier of the command that has generated the log or -1 if the log wasn't generated by a command.

class Log
int commandId;

Meta