-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services - being able to externalize the logging configurations
With the suggested modifications, we can define a bean as a string in any XML configuration files, e.g.: ``` <bean id="loggingConfigurationPath" class="java.lang.String"> <constructor-arg value="/etc/geonetwork/log4j"/> </bean> ``` Then having a `/etc/geonetwork/log4j/` directory with some log4j configurations like the default ones from the WEB-INF/classes subdirectory, we can externalize from the webapp the logging configuration. Not having the previous bean defined will fall back onto the current behaviour (e.g. using the files from the classpath). the main advantage of this approach is that we can customize the logging configuration without having to recompile GeoNetwork. We can even add new configurations without atering the webapp content.
- Loading branch information
Showing
2 changed files
with
33 additions
and
4 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