Main configuration

The main configuration includes the first and last line of the following XML file:

<configuration scan="true" scanPeriod="60 seconds">

The scan setting tells logback to rescan the configuration for changes and reload the service if changes are detected. The scanPeriod setting lets the configuration know how often to scan. We use these settings so that our log configuration is updated dynamically with the file; no service restart is needed.

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.