enhancement: add other log levels to docker start script and document them (#3072)

This commit is contained in:
Laurence Jones 2024-06-10 10:09:10 +01:00 committed by GitHub
parent 13fb252571
commit 819fa0ee22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -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 |

View file

@ -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