Logging
This document provides guidance on configuring logging for the different components in the Kannika Platform.
Synopsis
Section titled “Synopsis”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.
Operator logging
Section titled “Operator logging”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.
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.
operator: extraEnv: - name: RUST_LOG value: "info"API logging
Section titled “API logging”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.
api: extraEnv: - name: KANNIKA_LOGGING_FORMAT value: "json"The logging levels for the API can be set using the LOGGING_LEVEL_* environment variables:
api: extraEnv: - name: LOGGING_LEVEL_ROOT value: "info" - name: LOGGING_LEVEL_IO_KANNIKA value: "info"Console logging
Section titled “Console logging”Check the browser’s developer console for logs related to the console component.