code format and add @since

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409718 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-15 10:18:06 +00:00
parent 4c61954e7b
commit 72df73f9e8
1 changed files with 41 additions and 29 deletions

View File

@ -7,46 +7,58 @@ import org.slf4j.LoggerFactory;
/**
* Use an SLF4J {@link org.slf4j.ILoggerFactory} as a backing for a Plexus {@link org.codehaus.plexus.logging.LoggerManager}.
*
*
* @author Jason van Zyl
* @since 3.1
*/
public class Slf4jLoggerManager implements LoggerManager {
public class Slf4jLoggerManager
implements LoggerManager
{
private ILoggerFactory loggerFactory;
private ILoggerFactory loggerFactory;
public Slf4jLoggerManager() {
loggerFactory = LoggerFactory.getILoggerFactory();
}
public Slf4jLoggerManager()
{
loggerFactory = LoggerFactory.getILoggerFactory();
}
public Logger getLoggerForComponent(String role) {
return new Slf4jLogger(loggerFactory.getLogger(role));
}
public Logger getLoggerForComponent( String role )
{
return new Slf4jLogger( loggerFactory.getLogger( role ) );
}
public Logger getLoggerForComponent(String role, String hint) {
return new Slf4jLogger(loggerFactory.getLogger(role + "." + hint));
}
public Logger getLoggerForComponent( String role, String hint )
{
return new Slf4jLogger( loggerFactory.getLogger( role + "." + hint ) );
}
//
// Trying to give loggers back is a bad idea. Ceki said so :-)
//
public void returnComponentLogger(String role) {
}
//
// Trying to give loggers back is a bad idea. Ceki said so :-)
//
public void returnComponentLogger( String role )
{
}
public void returnComponentLogger(String role, String hint) {
}
public void returnComponentLogger( String role, String hint )
{
}
public int getThreshold() {
return 0;
}
public int getThreshold()
{
return 0;
}
public void setThreshold(int threshold) {
}
public void setThreshold( int threshold )
{
}
public void setThresholds(int threshold) {
}
public void setThresholds( int threshold )
{
}
public int getActiveLoggerCount() {
return 0;
}
public int getActiveLoggerCount()
{
return 0;
}
}