Configure Commands#
You can configure certain Certain Simplicity Commander settings by using the configure
command. These settings persist across Commander runs and updates.
Logging Overview#
You can use Simplicity Commander to log all Commander invocations in a user-defined log file by using the configure log
commands. Each entry in the log includes the following parameters:
Timestamp in the form
YYYY-MM-DD hh:mm:ss.zzz
The full path to the Commander executable
The command being executed, exactly as Commander receives it from the command line
Get Current Logging Status#
To view the the current logging status, use the configure log
command.
Command Line Syntax
$ commander configure log
Command Line Input Example
$ commander configure log
This example gets the current logging status.
Command Line Output Example
Logging is disabled.
Current log file path: /Users/username/logs/commander.log
DONE
Enable Logging#
To enable logging, use the configure log enable
command.
If you provide a file name, Commander uses that file for the log output file.
If no file name is provided, Commander uses the last known output file name.
If logging previously hasn't been enabled, Commander uses
~/.silabs/commander/commander.log
as the default file name.
Commander will create the path to the log file if it does not already exist. If the log file itself does not exist when logging is enabled, it will be created upon the next invocation of Commander.
Command Line Syntax
$ commander configure log enable [path]
Command Line Input Example
$ commander configure log enable "~/logs/commander.log"
This example enables logging and sets ~/logs/commander.log
as the output log file.
Command Line Output Example
Log file set to: /Users/username/logs/commander.log
DONE
Disable Logging#
To disable logging, use the configure log disable
command. Reenabling logging will use the last known output filename.
Command Line Syntax
$ commander configure log disable
Command Line Input Example
$ commander configure log disable
This example disables logging.
Command Line Output Example
Logging disabled.
DONE