Skip to content

Commit

Permalink
enhancement: add other log levels to docker start script and document…
Browse files Browse the repository at this point in the history
… them (#3072)
  • Loading branch information
LaurenceJJones committed Jun 10, 2024
1 parent 13fb252 commit 819fa0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
12 changes: 12 additions & 0 deletions docker/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 819fa0e

Please sign in to comment.