From 6138ffe99d016cc311f250bc1555b5403b8b1216 Mon Sep 17 00:00:00 2001 From: alex <alex@alexloehr.net> Date: Thu, 08 Oct 2026 17:18:04 +0000 Subject: [PATCH] GS-2555 --- README.md | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 04737e4..acfa705 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,16 @@ ### Logs +The log level is configured in `settings.$NODE_ENV.json` via `log.level` +(default `info`). The `LOG_LEVEL` environment variable overrides it, which is +handy for quiet test runs: + + LOG_LEVEL=error npm test + +Valid levels: `debug`, `info`, `warn`, `error`, and `silent` (or `off`) to +disable logging entirely. Messages below the active level are neither printed +nor written to `log.log`. + To prevent logs from growing too big the file `$INSTALLDIR/log.log` should be included into a logrotation job. Furthermore `pm2` also does some logging. -- Gitblit v1.8.0