Bridge CLI offers multiple logging and diagnostic options. By default, logs are written to <current_working_directory>/.bridge directory. User can change this default location by passing the --home <directory_path> option.
Logging
Bridge CLI offers the following JSON format logging options:
- Pass
--json-logto output JSON format logs to console. - Pass
--json-log-fileto enable JSON format logs in thebridge.logfile in the Bridge CLI home directory.
Diagnostics
To enable Bridge CLI diagnostics mode, pass a
--diagnostics command line option. With this option set, Bridge CLI:- writes additional diagnostics information to
bridge.log. - passes diagnostics related options to underlying tools so that they create logs under the Bridge CLI home directory.
- writes execution state data to
diagnostics.jsonfile under the Bridge CLI home directory.