You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`WARNING`, `ERROR`, and `CRITICAL`. Missing or invalid values default to `INFO`.
25
23
***Rust HTTP services**: Configure log filtering with [tracing_subscriber::EnvFilter][EnvFilter].
26
24
Filter directives are read from the `RUST_LOG` environment variable to determine which spans and
27
25
events are enabled.
28
-
**`log-ingestor`*: Log level is exposed via `CLP_LOG_INGESTOR_LOGGING_LEVEL`
29
-
(Docker Compose) or `clpConfig.log_ingestor.logging_level` (Helm), which is
30
-
then passed to `RUST_LOG`.
31
-
**`api-server`*: Log level is hardcoded to `INFO` and does not expose a deployment
32
-
variable for configuration.
26
+
**`log-ingestor`*: Log level is exposed via `CLP_LOG_INGESTOR_LOGGING_LEVEL` (Docker Compose)
27
+
or `clpConfig.log_ingestor.logging_level` (Helm), which is then passed to `RUST_LOG`.
28
+
**`api-server`*: Log level is hardcoded to `INFO` and does not expose a deployment variable
29
+
for configuration.
33
30
***WebUI**: `LOG_LEVEL` controls the Pino server log level (defaults to `info`).
34
-
:::{warning}
35
-
`LOG_LEVEL` is a generic environment variable. Be mindful of environment
36
-
variable collisions with other tools or container settings.
37
-
:::
31
+
32
+
:::{warning}
33
+
`LOG_LEVEL` is a generic environment variable. Be mindful of environment
34
+
variable collisions with other tools or container settings.
35
+
:::
38
36
39
37
## Log routing and collection
40
38
41
-
Access to CLP package logs is entirely dependent on where the component is executed.
39
+
Access to the CLP Package logs is entirely dependent on where the component is executed.
42
40
43
41
### Containerized services
44
42
45
43
For continuously running deployed services such as Python orchestration services, Rust HTTP services, and WebUI server, log routing depends on the orchestrator:
46
44
47
45
***Docker Compose**: Logs are available using `docker compose logs`. If `CLP_LOGS_DIR` is set,
48
46
logs are additionally written to `<CLP_LOGS_DIR>/<component_name>.log`. This directory mounts to the host via `CLP_LOGS_DIR_HOST` (defaults to `./var/log`).
49
-
:::{note}
50
-
For Rust services, setting `CLP_LOGS_DIR` enables file logging with hourly log rotation and a
51
-
non-blocking file writer.
52
-
:::
53
-
***Kubernetes/Helm**: Logs are accessible using `kubectl logs` or a cluster log collector (e.g., Fluent Bit).
54
-
File logging is only enabled for templates that set `CLP_LOGS_DIR` and mount a log volume.
47
+
:::{note}
48
+
For Rust services, setting `CLP_LOGS_DIR` enables file logging with hourly log rotation and a
49
+
non-blocking file writer.
50
+
:::
51
+
***Kubernetes/Helm**: Logs are accessible using `kubectl logs` or a cluster log collector (e.g., Fluent Bit). File
52
+
logging is only enabled for templates that set `CLP_LOGS_DIR` and mount a log volume.
Copy file name to clipboardExpand all lines: docs/src/dev-docs/logging.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
-
# CLP package logging
1
+
# CLP Package logging
2
2
3
-
The CLP package utilizes a polyglot architecture, meaning each component family manages its own logging stack. There is **no single project-wide JSON schema**.
3
+
The CLP Package utilizes a polyglot architecture, meaning each component family manages its own
4
+
logging stack. There is **no single project-wide JSON schema**.
4
5
5
6
This document is divided into two sections:
6
7
7
-
*[Developer guide](logging-developer-guide.md): How to set up and write logs when modifying CLP components.
8
-
*[Operator guide](logging-operator-guide.md): How to configure log levels, capture service logs, and understand the component-specific log structures in deployment.
8
+
*[Developer guide](logging-developer-guide.md): How to set up and write logs when modifying CLP
9
+
components.
10
+
*[Operator guide](logging-operator-guide.md): How to configure log levels, capture service logs,
11
+
and understand the component-specific log structures when deploying CLP package services.
0 commit comments