-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PBM-1226 Documented custom log path configuration #235
base: main
Are you sure you want to change the base?
Conversation
nastena1606
commented
Nov 29, 2024
new file: docs/manage/logpath.md modified: mkdocs-base.yml
Co-authored-by: Sandra Romanchenko <[email protected]>
Co-authored-by: Sandra Romanchenko <[email protected]>
Co-authored-by: Sandra Romanchenko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with description, but please see comments.
| Environment variable | Command line flag | Description | | ||
|----------------------|-------------------|-------------| | ||
| `LOG_PATH` | `--log-path` | The path to the log file. The file is created if it doesn't exist. The default value is `/dev/stderr` which means that the logs are written to the standard error output. | | ||
| `LOG_LEVEL` | `--log-level` | The log severity level. Supported levels are (from low to high): D - Debug, I - Info (default), W - Warning, E - Error, F - Fatal.<br><br> The output includes both the specified severity level and all higher ones | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `LOG_LEVEL` | `--log-level` | The log severity level. Supported levels are (from low to high): D - Debug, I - Info (default), W - Warning, E - Error, F - Fatal.<br><br> The output includes both the specified severity level and all higher ones | | |
| `LOG_LEVEL` | `--log-level` | The log severity level. Supported levels are (from low to high): D - Debug (default), I - Info, W - Warning, E - Error, F - Fatal.<br><br> The output includes both the specified severity level and all higher ones | |
Debug is default.
|----------------------|-------------------|-------------| | ||
| `LOG_PATH` | `--log-path` | The path to the log file. The file is created if it doesn't exist. The default value is `/dev/stderr` which means that the logs are written to the standard error output. | | ||
| `LOG_LEVEL` | `--log-level` | The log severity level. Supported levels are (from low to high): D - Debug, I - Info (default), W - Warning, E - Error, F - Fatal.<br><br> The output includes both the specified severity level and all higher ones | | ||
| `LOG_OUTPUT`| `--log-output` | The output format of the log messages. Supported values are `text` (default) and `json`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `LOG_OUTPUT`| `--log-output` | The output format of the log messages. Supported values are `text` (default) and `json`. | | |
| `LOG_JSON`| `--log-json` | The output format of the log messages. If specified `json` format is use and default is `text` format. | |
=== ":material-console: Command line" | ||
|
||
```{.bash data-prompt="$"} | ||
$ pbm-agent --log-path=/var/log/pbm-agent.log --log-level=W --log-output=json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ pbm-agent --log-path=/var/log/pbm-agent.log --log-level=W --log-output=json | |
$ pbm-agent --log-path=/var/log/pbm-agent.log --log-level=W --log-json |