org.sonatype.gshell.plexus
Class Slf4jLoggerManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLoggerManager
org.sonatype.gshell.plexus.Slf4jLoggerManager
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LoggerManager
public class Slf4jLoggerManager
- extends org.codehaus.plexus.logging.AbstractLoggerManager
Adapts the Plexus logging system to SLF4J.
- Since:
- 3.0
- Author:
- Jason Dillon
| Fields inherited from interface org.codehaus.plexus.logging.LoggerManager |
ROLE |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLoggerManager |
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Slf4jLoggerManager
public Slf4jLoggerManager()
createLogger
protected org.codehaus.plexus.logging.Logger createLogger(String key)
getLoggerForComponent
public org.codehaus.plexus.logging.Logger getLoggerForComponent(String role,
String roleHint)
toMapKey
protected String toMapKey(String role,
String roleHint)
- Overrides:
toMapKey in class org.codehaus.plexus.logging.AbstractLoggerManager
returnComponentLogger
public void returnComponentLogger(String role,
String roleHint)
setThreshold
public void setThreshold(int threshold)
getThreshold
public int getThreshold()
setThresholds
public void setThresholds(int threshold)
setThreshold
public void setThreshold(String role,
String roleHint,
int threshold)
getThreshold
public int getThreshold(String role,
String roleHint)
getActiveLoggerCount
public int getActiveLoggerCount()
Copyright © 2008-2011 Sonatype. All Rights Reserved.