Skip to main content
Version: 6.10.0

Logging Configuration

By default the Portal Dedicated logs to /var/log/management-console/mc.log with default settings of:

  • Maximum single file size: 5 MB
  • Days to retain log files: 30
  • Total size of all log files* : 2 GB
  • Rolled files are compressed with name pattern: mc.log.yyyy-MM-dd.%i.gz (%i being an index that starts at 0)
  • Log level: INFO

* This is done asynchronously and also depends on the maximum file size value. Set at around 75% of the value not to be exceeded.


Create logging directory

The desired logging directory must be manually created:

sudo mkdir --parent /var/log/management-console

Setting logging location

To change the default logging location update logging.file.name in application.properties.

For example:

logging.file.name=/tmp/mc.log

Setting global logging level

To change the default logging level of INFO update logging.level.root in application.properties with a value from: TRACE, DEBUG, INFO, ERROR

For example:

logging.level.root=DEBUG

Logging settings

All other logging settings can be edited in the Logback configuration file logging.xml file found in the root of the Portal Dedicated installation. See Logback documentation for details