newtmgr log¶
Manage logs on a device.
Usage:¶
newtmgr log [command] -c <conn_profile> [flags]
Global Flags:¶
-c, --conn string       connection profile to use
-h, --help              help for newtmgr
-l, --loglevel string   log level to use (default "info")
    --name string       name of target BLE device; overrides profile setting
-t, --timeout float     timeout in seconds (partial seconds allowed) (default 10)
-r, --tries int         total number of tries in case of timeout (default 1)
Description¶
The log command provides subcommands to manage logs on a device. Newtmgr uses the conn_profile connection profile
to connect to the device.
| Sub-command | Explanation | 
|---|---|
| clear | The  | 
| level_list | The  | 
| list | The  | 
| module_list | The  | 
| show | The  The following optional parameters can be used to filter the logs to display: 
 | 
Examples¶
| Sub-command | Usage | Explanation | 
|---|---|---|
| clear | 
 | Clears the logs on a device. Newtmgr connects to the device over a connection specified in the  | 
| level_list | 
 | Shows the log levels on a device. Newtmgr connects to the device over a connection specified in the  | 
| list | 
 | Shows the log names on a device. Newtmgr connects to the device over a connection specified in the  | 
| module_list | 
 | Shows the log module names on a device. Newtmgr connects to the device over a connection specified in the  | 
| show | 
 | Displays all logs on a device. Newtmgr connects to the device over a connection specified in the  | 
| show | 
 | Displays all log entries for the reboot_log on a device. Newtmgr connects to the device over a connection specified in the  | 
| show | 
 | Displays the last entry from the reboot_log on a device. Newtmgr connects to the device over a connection specified in the  | 
| show | 
 | Displays the reboot_log log entries with an index 2 and higher on a device. Newtmgr connects to the device over a connection specified in the  | 
| show | 
 | Displays the reboot_log log entries with a timestamp higher than 123456 and log entries with a timestamp equal to 123456 and an index equal to or higher than 5. Newtmgr connects to the device over a connection specified in the  | 
