Skip to content
M2Shawning edited this page Apr 27, 2019 · 9 revisions

Logging to a file

Logging to a file is supported as of 1.5.0. You can specify the path to the log file with the LOG_FILE environment variable:

docker run -d --name bitwarden \
...
  -e LOG_FILE=/data/bitwarden.log \
...

Note that if you're using the docker image, you'll most likely want to use a file path that is mounted from the host OS (such as the data folder).

Change the log level

To reduce the amount of log messages, you can set the log level to 'critical' (default is 'normal') and disable the extended logging (enabled by default). The Log level can be adjusted with the environment variable ROCKET_LOG. Extended logging can be deactivated by setting the environment variable EXTENDED_LOGGING to 'false'. Be advised, disabling EXTENDED_LOGGING will stop the log file from being written to.

docker run -d --name bitwarden \
...
  -e ROCKET_LOG=critical -e EXTENDED_LOGGING=false \
...
Clone this wiki locally