Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logback: make socket appender construction depend on log level
see #3115 Motivation: The default host for the remote logging server used by the alarms service is localhost. However, even when the remote logging level is set to 'off', the socket appender is created by the logback.xml file. If it does not find a valid endpoint at the address used to configure it, it will keep retrying. This is visible only if <configuration debug="true">. If the remote host is left blank, the socket appender will not try to connect. Modification: Use logback conditional configuration to create remote appender using socket and async appenders only if dcache.log.level.remote is not set to 'off'. This requires the addition of the janino library to the pom. Result: While generally benign, the sub-optimal reconnect behavior has been eliminated. An added advantage is that even if a remote server is defined and running, if logging is turned off for a domain, the appender will not attempt to connect. Target: master Request: 3.1 Request: 3.0 Request. 2.16 Closes: #3115 Acked-by: Dmitry Acked-by: Paul
- Loading branch information
alrossi
committed
Jul 13, 2017
1 parent
5ac8e0f
commit 55139c0
Showing
3 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters