Container Log Files

Diagnostic information about the Private AI Services Container is available and stored in log messages.

An external log folder can be mounted to collect the logs by adding, for example, the -v /scratch/$USER/logs:/privateai/logs option. In this example, /scratch/$USER/logs is your local log folder.

Both Logback and java.util.logging (JUL) frameworks are used for logging, with Logback handling the logs from the container and JUL handling the logs from java-core-api. The log messages from the two frameworks are written to separate log files with prefixes privateai-log-logback and privateai-mod-jul.

Note:

In order for logs to be displayed in the console, -e PRIVATE_AI_LOG_STDOUT_ENABLED=true must be set when starting a container. If not set, log files can be found under /privateai/logs in the container path.

The logging level is determined by the PRIVATE_AI_LOG_LEVEL environment variable that can be specified in the configuration file. The possible values are as follows:

  • INFO (default)
  • OFF
  • SEVERE
  • WARNING
  • FINE
  • FINER
  • FINEST
  • ALL