Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 93977f8b authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Minor logback configuration updates

parent 7d4446be
No related branches found
No related tags found
No related merge requests found
......@@ -54,18 +54,20 @@ public class FileProperty {
File f = new File(logPropertyFile);
if (!f.exists()) {
LOG.info("Log configuration file: {} not exists.", f.getAbsolutePath());
LOG.info("Log configuration file: [{}] not exists.", f.getAbsolutePath());
f = new File(configurationFolder, logPropertyFile);
LOG.info("Set log configuration file: {}.", f.getAbsolutePath());
LOG.info("Try with the configuration file path: [{}].", f.getAbsolutePath());
}
// if configuration file exist update configuration
if (f.exists()) {
setLogConfiguration(f);
} else {
LOG.info("File path: [{}] does not exists.", f.getAbsolutePath());
}
}
public static void setLogConfiguration(File configurationFile) {
LOG.info("Set log configuration properties from the file: [{}]", configurationFile.getAbsolutePath());
try (InputStream configStream = new FileInputStream(configurationFile)) {
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
JoranConfigurator configurator = new JoranConfigurator();
......
......@@ -32,9 +32,9 @@
<pattern>${consolePattern}</pattern>
</encoder>
</appender>
<logger name="eu.europa.ec.edelivery" level="DEBUG" />
<logger name="eu.europa.ec.smp" level="DEBUG" />
<logger name="org.springframework.security.cas" level="DEBUG" />
<logger name="eu.europa.ec.edelivery" level="INFO" />
<logger name="eu.europa.ec.smp" level="INFO" />
<logger name="org.springframework.security.cas" level="INFO" />
<root level="WARN">
<appender-ref ref="file"/>
<appender-ref ref="stdout"/>
......
......@@ -50,7 +50,7 @@ jdbc.password=secret123
# smp log folder
# log.folder=../logs/
# custom log4j configuration file
# custom logback configuration file
# log.configuration.file=smp-logback.xml
# *********************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment