mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
enhancement: add other log levels to docker start script and document them (#3072)
This commit is contained in:
parent
13fb252571
commit
819fa0ee22
2 changed files with 15 additions and 0 deletions
|
@ -333,6 +333,9 @@ config.yaml) each time the container is run.
|
|||
| `DISABLE_APPSEC_RULES` | | Appsec rules files to remove, separated by space |
|
||||
| | | |
|
||||
| __Log verbosity__ | | |
|
||||
| `LEVEL_FATAL` | false | Force FATAL level for the container log |
|
||||
| `LEVEL_ERROR` | false | Force ERROR level for the container log |
|
||||
| `LEVEL_WARN` | false | Force WARN level for the container log |
|
||||
| `LEVEL_INFO` | false | Force INFO level for the container log |
|
||||
| `LEVEL_DEBUG` | false | Force DEBUG level for the container log |
|
||||
| `LEVEL_TRACE` | false | Force TRACE level (VERY verbose) for the container log |
|
||||
|
|
|
@ -504,5 +504,17 @@ if istrue "$LEVEL_INFO"; then
|
|||
ARGS="$ARGS -info"
|
||||
fi
|
||||
|
||||
if istrue "$LEVEL_WARN"; then
|
||||
ARGS="$ARGS -warning"
|
||||
fi
|
||||
|
||||
if istrue "$LEVEL_ERROR"; then
|
||||
ARGS="$ARGS -error"
|
||||
fi
|
||||
|
||||
if istrue "$LEVEL_FATAL"; then
|
||||
ARGS="$ARGS -fatal"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
exec crowdsec $ARGS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue