Skip to content

Logger

ICC uses a single setting to control the logging of all sub-services.

The environment variable to set is PLT_ICC_LOGGER_LEVEL.

When installing with Helm, set services.icc.log_level.

The following log levels are supported, from least to most verbose:

  • fatal - Only fatal errors
  • error - Errors and above
  • warn - Warnings and above (default)
  • info - Informational messages and above
  • debug - Debug messages and above
  • trace - All messages including trace level

For verbose logging during development:

Terminal window
export PLT_ICC_LOGGER_LEVEL=debug

For minimal logging in production (default):

Terminal window
export PLT_ICC_LOGGER_LEVEL=warn

The main service has a special configuration for the health check route (/health) that sets its log level to error to prevent health check requests from cluttering the logs.

  1. Production: Use warn or error levels to minimize log volume
  2. Development: Use info or debug for better visibility
  3. Debugging: Use trace for specific services when troubleshooting
  4. Performance: Higher log levels (trace, debug) can impact performance; use sparingly in production