Skip to content

Commit

Permalink
Merge pull request #120 from tsgit/logger_logging
Browse files Browse the repository at this point in the history
fix logging for alarm-logger
  • Loading branch information
jbellister-slac authored Jun 12, 2023
2 parents edb0579 + 97f89bf commit b8674bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion phoebus-alarm-logger/cli/commands/start-logger
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 7 additions & 10 deletions phoebus-alarm-logger/logging.properties
Original file line number Diff line number Diff line change
@@ -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_,
Expand All @@ -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

0 comments on commit b8674bb

Please sign in to comment.