From d5be1074628892ab68555ad5d48979d891fc4556 Mon Sep 17 00:00:00 2001 From: Anselm McClain Date: Mon, 20 May 2024 09:19:15 -0700 Subject: [PATCH] Restored routing of status monitor logging to dedicated file --- CHANGELOG.md | 4 ++++ .../xh/hoist/configuration/LogbackConfig.groovy | 17 +++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40becc8f..69b5afb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 21.0-SNAPSHOT - unreleased +### 🐞 Bug Fixes + +* Restored routing of status monitor logging to dedicated file. + ## 20.0.0 - 2024-05-17 ### 🎁 New Features diff --git a/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy b/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy index 3a840b45..61ed161e 100644 --- a/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy +++ b/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy @@ -30,9 +30,8 @@ import io.xh.hoist.log.LogSupportConverter; /** * This class supports the default logging configuration in Hoist. * - * Applications should customize/specify their logging conventions via - * the file grails-app/conf/logback.groovy. See example-logback.txt - * (in this directory) as well as the logback and grails documentation for + * Apps should customize/specify their logging conventions in `grails-app/conf/logback.groovy`. + * See `example-logback.txt` in this directory as well as the logback and grails documentation for * more information on how to construct this file. */ class LogbackConfig { @@ -74,17 +73,15 @@ class LogbackConfig { /** * Main entry point. * - * This function sets up "built-in" appenders for stdout, a daily rolling log, - * and logs for Hoists built-in monitoring. + * This function sets up "built-in" appenders for stdout, a daily rolling log, and additional + * dedicated logs for Hoist's built-in activity tracking and status monitoring. * - * It will also setup default logging levels logging levels for application, Hoist, and other + * It will also setup default logging levels logging levels for application, Hoist, and select * third-party packages. Note that these logging levels can be overwritten statically by * applications in logback.groovy. * * Application logback scripts need to call this method in their logback.groovy file. - * See example-logback.groovy in this directory for more details. - * - * @param script + * See `example-logback.txt` in this directory for more details. */ static void defaultConfig(Script script) { withDelegate(script) { @@ -123,7 +120,7 @@ class LogbackConfig { // Loggers for MonitoringService and TrackService. // Do not duplicate in main log file, but write to stdout - logger('io.xh.hoist.monitor.MonitoringService', INFO, [monitorLogName, 'stdout'], false) + logger('io.xh.hoist.monitor.MonitorEvalService', INFO, [monitorLogName, 'stdout'], false) logger('io.xh.hoist.track.TrackService', INFO, [trackLogName, 'stdout'], false) // Quiet noisy loggers