Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java log4j2 load configuration

ConfigurationSource source = new ConfigurationSource();
source.setLocation(logConfigurationFile);
source.setFile(new File(logConfigurationFile));
source.setInputStream(new FileInputStream(logConfigurationFile));
Configurator.initialize(null, source);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #load #configuration
ADD COMMENT
Topic
Name
1+6 =