From 97f89bf947b83618131e1998bb4d2cdf15af9c10 Mon Sep 17 00:00:00 2001 From: Thorsten Schwander Date: Sun, 11 Jun 2023 17:46:15 -0600 Subject: [PATCH] fix logging for alarm-logger Signed-off-by: Thorsten Schwander --- phoebus-alarm-logger/cli/commands/start-logger | 2 +- phoebus-alarm-logger/logging.properties | 17 +++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/phoebus-alarm-logger/cli/commands/start-logger b/phoebus-alarm-logger/cli/commands/start-logger index c541132..9a2d76b 100644 --- a/phoebus-alarm-logger/cli/commands/start-logger +++ b/phoebus-alarm-logger/cli/commands/start-logger @@ -49,4 +49,4 @@ sed -i 's/$ES_PORT/'"$ES_PORT/" /tmp/logger.properties sed -i 's/$BOOTSTRAP_SERVERS/'"$BOOTSTRAP_SERVERS/" /tmp/logger.properties -java -jar $ALARM_LOGGER_JAR -properties /tmp/logger.properties -topics $CONFIG_NAME -noshell +java -jar $ALARM_LOGGER_JAR -properties /tmp/logger.properties -logging $LOGGING_CONFIG_FILE -topics $CONFIG_NAME -noshell diff --git a/phoebus-alarm-logger/logging.properties b/phoebus-alarm-logger/logging.properties index 403fd49..4a8071a 100644 --- a/phoebus-alarm-logger/logging.properties +++ b/phoebus-alarm-logger/logging.properties @@ -1,14 +1,14 @@ -# Default java.util.logging configuration for alarm server +# Default java.util.logging configuration for alarm logger # -# Read in AlarmServerMain via LogManager +# Read in AlarmLoggingService via LogManager handlers = java.util.logging.ConsoleHandler # Levels: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL # General level 'FINE' to enable logging, which is then fine-tuned below -.level = FINE +.level = INFO -java.util.logging.ConsoleHandler.level = ALL +java.util.logging.ConsoleHandler.level = INFO java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter # 1: date, 2: source, 3: logger, 4: level, 5: message, 6:thrown # Adding the logger name [%3$s] can be useful to determine which logger to _disable_, @@ -20,10 +20,7 @@ java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$ # Throttle messages for certain packages -# Raise back up from 'WARNING' to debug -javax.activation.level = WARNING -javax.mail.level = WARNING -com.sun.mail.smtp.level = WARNING - +org.phoebus.alarm.logging.level = INFO +org.elasticsearch.client.RestClient.level = WARNING +org.apache.catalina.core.StandardService.level = WARNING org.apache.kafka.level = WARNING -org.phoebus.applications.alarm.level = INFO \ No newline at end of file