org.apache.maven.cli.logging.impl
Class Log4j2Configuration

java.lang.Object
  extended by org.apache.maven.cli.logging.BaseSlf4jConfiguration
      extended by org.apache.maven.cli.logging.impl.Log4j2Configuration
All Implemented Interfaces:
Slf4jConfiguration

public class Log4j2Configuration
extends BaseSlf4jConfiguration

Configuration for slf4j-log4j2.

Author:
Hervé Boutemy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.maven.cli.logging.Slf4jConfiguration
Slf4jConfiguration.Level
 
Constructor Summary
Log4j2Configuration()
           
 
Method Summary
 void activate()
          Activate logging implementation configuration (if necessary).
 void setRootLoggerLevel(Slf4jConfiguration.Level level)
          Set root logging level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4j2Configuration

public Log4j2Configuration()
Method Detail

setRootLoggerLevel

public void setRootLoggerLevel(Slf4jConfiguration.Level level)
Description copied from interface: Slf4jConfiguration
Set root logging level.

Specified by:
setRootLoggerLevel in interface Slf4jConfiguration
Overrides:
setRootLoggerLevel in class BaseSlf4jConfiguration
Parameters:
level - the level

activate

public void activate()
Description copied from interface: Slf4jConfiguration
Activate logging implementation configuration (if necessary).

Specified by:
activate in interface Slf4jConfiguration
Overrides:
activate in class BaseSlf4jConfiguration


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.