All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.karyon.log4j.ArchaiusLog4J2ConfigurationModule Maven / Gradle / Ivy

package com.netflix.karyon.log4j;

import org.apache.logging.log4j.core.ArchaiusLog4J2ConfigurationFactory;

import com.google.inject.AbstractModule;

/**
 * Add this to the list of Guice modules to enable reconfiguration of log4j2
 * from properties defined in application.properties.  Also, reconfigure on 
 * a set interval to pick up changes to log levels from dynamic properties.
 * 
 * @author elandau
 *
 */
public class ArchaiusLog4J2ConfigurationModule extends AbstractModule {
    @Override
    protected void configure() {
        this.requestStaticInjection(ArchaiusLog4J2ConfigurationFactory.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy