Logging¶
Summary
Messages are shown on the console and written to a rotating log file. Commands of actions and command conditions and their output are only logged on DEBUG level.
Example¶
Options¶
All policy and trust commands accept these options:
| Option | Default | Description |
|---|---|---|
--log-level |
INFO |
Minimum log level shown on the console and written to the log file. One of DEBUG, INFO, WARNING or ERROR. |
--log-file |
powerrules.log |
Path to the rotating log file. |
--log-level-file |
value of --log-level |
Minimum log level written to the log file. |
Details¶
- Messages below
WARNINGare written to stdout,WARNINGandERRORto stderr. - The log file is rotated at 10 MB and five backups are kept.
- Use
--log-level DEBUGto find out why a condition did or did not match.