TMF Logging Configuration

TMF Logging Configuration Properties describes the properties for configuring TM Forum Open API Gateway to persist rolling logs in a volume.

Table 1. TMF Logging Configuration Properties
Property Default Description
logs.volume.enabled true Enables persisting rolling logs in a volume.
logs.volume.claimName shared-logging-storage The name of the persistent volume to use for persisting the logs.
env.LOG_LEVEL DEBUG Sets the log level: debug, warn, trace, error, info.
env.FILE_LOG_SIZE 50KB The size of the log files.
env.FILE_LOG_MAX 20 The maximum number of rolling logs to persist.
env.MTX_LOG_MECHANISM FILE When set to FILE, outputs logs to file. When set to STDOUT, prints out logs to the terminal.
The following excerpt from the TMF values YAML file shows the default values for these properties:
logs:
  volume:
    enabled: true
    claimName: shared-logging-storage
env:
  LOG_LEVEL: DEBUG
  FILE_LOG_SIZE: 50KB
  FILE_LOG_MAX: 20
  MTX_LOG_MECHANISM: FILE 
  ...