Skip to content

Logging

This page describes how to configure logging for a Backup.

You can configure the logging level for a Backup by setting the RUST_LOG environment variable in the Backup specification.

apiVersion: io.kannika/v1alpha
kind: Backup
metadata:
name: backup
spec:
source: "my-kafka"
sink: "my-storage"
extraEnvVars:
- name: RUST_LOG
value: "debug"

The available logging levels are:

  • error: Logs only error messages.
  • warn: Logs warning and error messages.
  • info: Logs informational messages, warnings, and errors.
  • debug: Logs detailed debugging information, informational messages, warnings, and errors.
  • trace: Logs very detailed tracing information, debugging information, informational messages, warnings, and errors.