org.slf4j.impl.Log4jLoggerFactory Java Examples

The following examples show how to use org.slf4j.impl.Log4jLoggerFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RoboVmBuildProcessParametersProvider.java    From robovm-idea with GNU General Public License v2.0 5 votes vote down vote up
@Override
@NotNull
public List<String> getClassPath() {
    List<String> classpath = new ArrayList<>();
    classpath.add(PathUtil.getJarPathForClass(Ant.class));
    classpath.add(PathUtil.getJarPathForClass(GroovyObject.class));
    classpath.add(PathUtil.getJarPathForClass(Gson.class));
    classpath.add(PathUtil.getJarPathForClass(Logger.class));
    classpath.add(PathUtil.getJarPathForClass(Log4jLoggerFactory.class));
    return classpath;
}
 
Example #2
Source File: CougarLoggingUtils.java    From cougar with Apache License 2.0 4 votes vote down vote up
public static void suppressAllRootLoggerOutput() {
    ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory();
    if (iLoggerFactory instanceof Log4jLoggerFactory) {
        org.apache.log4j.Logger.getRootLogger().addAppender(new org.apache.log4j.varia.NullAppender());
    }
}