Skip to content

Logging

This document provides guidance on configuring logging for the different components in the Kannika Platform.

values.yaml
operator:
config:
logging:
format: "json" # `json` (default) or `text`
extraEnv:
- name: RUST_LOG
value: "info"
api:
extraEnv:
- NAME: KANNIKA_LOGGING_FORMAT
value: "json" # `json` (default) or `text`
- name: LOGGING_LEVEL_ROOT
value: "info"
- name: LOGGING_LEVEL_IO_KANNIKA
value: "info"

The available logging levels are:

  • debug: Detailed debugging information.
  • info: General operational information (default).
  • warn: Warnings about potential issues.
  • error: Error messages indicating failures.
  • trace: Very detailed tracing information.

The operator.config.logging.format setting allows you to specify the logging format. The available options are:

  • json: Logs are formatted in JSON (default).
  • text: Logs are formatted as plain text.
values.yaml
operator:
config:
logging:
format: "json"

The logging level for the operator can be set using the RUST_LOG environment variable in the operator.extraEnv section.

values.yaml
operator:
extraEnv:
- name: RUST_LOG
value: "info"

The logging format for the API can be set using the KANNIKA_LOGGING_FORMAT environment variable. The available options are:

  • json: Logs are formatted in JSON (default).
  • text: Logs are formatted as plain text.
values.yaml
api:
extraEnv:
- name: KANNIKA_LOGGING_FORMAT
value: "json"

The logging levels for the API can be set using the LOGGING_LEVEL_* environment variables:

values.yaml
api:
extraEnv:
- name: LOGGING_LEVEL_ROOT
value: "info"
- name: LOGGING_LEVEL_IO_KANNIKA
value: "info"

Check the browser’s developer console for logs related to the console component.