Skip to main content

log

This command sets or retrieves the current log level for the PyLXCA toolkit.

Syntax

log  -h

log [-l <level>]

Options

{-h | --help}
Displays the syntax and brief usage information for this command.
{-l | --lvl} <level>
Sets the log level. You can specify one of the following values:
  • DEBUG. Displays detailed information, typically of interest only when diagnosing problems.

  • INFO. Displays information that confirms that things are working as expected.

  • WARNING. Displays information that indicates that something unexpected happened or that a problem might occur soon.

  • ERROR. Displays information about serious problems, indicating that the software cannot perform a function.

  • CRITICAL. Displays information about serious errors, indicating that the program itself might be unable to continue running.

When you choose a severity level, messages at that severity level and all lower severity levels are returned. For example, if you specify WARNING, all WARNING, INFO, and DEBUG messages are returned.

Examples

The following example retrieves the current log level.
connect --url https://192.0.2.0 --user ADMIN  --noverify
log
The following example sets the current log level to warning and lower.
connect --url https://192.0.2.0 --user ADMIN  -noverify
log -l WARNING