org.sonatype.gshell.plexus
Class Slf4jLoggerManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLoggerManager
      extended by 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

Nested Class Summary
static class Slf4jLoggerManager.LoggerImpl
          Adapts the Plexus Logger interface to SLF4J
 
Field Summary
 
Fields inherited from interface org.codehaus.plexus.logging.LoggerManager
ROLE
 
Constructor Summary
Slf4jLoggerManager()
           
 
Method Summary
protected  org.codehaus.plexus.logging.Logger createLogger(String key)
           
 int getActiveLoggerCount()
           
 org.codehaus.plexus.logging.Logger getLoggerForComponent(String role, String roleHint)
           
 int getThreshold()
           
 int getThreshold(String role, String roleHint)
           
 void returnComponentLogger(String role, String roleHint)
           
 void setThreshold(int threshold)
           
 void setThreshold(String role, String roleHint, int threshold)
           
 void setThresholds(int threshold)
           
protected  String toMapKey(String role, String roleHint)
           
 
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
 

Constructor Detail

Slf4jLoggerManager

public Slf4jLoggerManager()
Method Detail

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.