From 62d34db8dc0f8ba5a28c122629fd65db0cf315b9 Mon Sep 17 00:00:00 2001 From: Oleksii Sholik Date: Thu, 28 Nov 2024 15:00:19 +0200 Subject: [PATCH] Document LOG_LEVEL and LOG_COLORS config options --- website/docs/api/config.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/website/docs/api/config.md b/website/docs/api/config.md index d4e8d220f9..a18871c474 100644 --- a/website/docs/api/config.md +++ b/website/docs/api/config.md @@ -297,3 +297,35 @@ Expose a prometheus reporter for telemetry data on the specified port. Enable sending telemetry data to a StatsD reporting endpoint. + +## Logging + +### ELECTRIC_LOG_LEVEL + + + +Verbosity of Electric's log output. + +Available levels, in the order of increasing verbosity: +- `error` +- `warning` +- `info` +- `debug` + + + +### ELECTRIC_LOG_COLORS + + + +Enable or disable ANSI coloring of Electric's log output. + +By default, coloring is enabled when Electric's stdout is connected to a terminal. This may be undesirable in certain runtime environments, such as AWS which displays ANSI color codes using escape sequences and may incorrectly split log entries into multiple lines. + +