Logging

MSGMX provides a logging option to capture all commands and their associated output. Logging can be enabled at startup (-l / --log) by specifying the log file location path.

msgmx --log logfilepath

The log file follows a specific format:

  • timestamp for each executed command (starts with '^ ' and ends with a newline)
  • user-executed-command for each executed command (starts with '> ' and ends with a newline)
  • all other MSGMX command and output (all command output is also displayed in the MSGMX command window )
Note: Interactive window output (status bar, drop down menus, etc.) is not logged.

Example

^ 09/12/2019 15:18:30
>list topics
topic1
topic2
topic3
topicname


^ 09/12/2019 15:20:10
>create topic topic6 partitions 1 replication-factor 1
Created topic topic6.