app-log

app-log

This command manages the application log. Running the command without parameters will display the current logging configuration:

sqlbak app-log

Subcommands

get

Read the application log settings.

Syntax:

sqlbak app-log get

Parameters:

--save-to-file=<path> – Save the application log settings to a file. Use this argument to set the file path for writing the current application log settings.
--confirm – Confirm the changes to the application log settings or file overwriting.

set

Update the application log settings.

Syntax:

sqlbak app-log set --load-from-file=<path>

Parameters:

--load-from-file=<path> – Load the application log settings from a file. Use this argument to specify the path to a file with the application log settings.

The settings file format:

{
  "log_level": "Information"
}

Edit the file and set the log_level to one of the following values:

  • Trace – Maximum logging level. Enabling this may significantly slow down the application and generate large log files. ⚠️ Note: Sensitive information, such as credentials, may be included in the log when this level is enabled.
  • Information – A general logging level that shows what the application is doing. This is the level we typically ask you to use when contacting support.
  • Warning – Only warnings and errors are logged.
  • Error – Only errors are logged.

reset

Reset the application log settings.

Syntax:

sqlbak app-log reset

Parameters:

--confirm – Confirm the changes to the application log settings or file overwriting.

send-log

Send log files to the developers team.

Syntax:

sqlbak app-log send-log

get-log

Save the application log file.

Syntax:

sqlbak app-log get-log

Parameters:

--save-to-file=<path> – Save the application log file to a file. Use this argument to set the file path for writing the current application log file.
--confirm – Confirm the changes to the application log settings or file overwriting.

delete-log

Delete log files.

Syntax:

sqlbak app-log delete-log

Parameters:

--confirm – Confirm the changes to the application log settings or file overwriting.