public class Slf4jLoggerManager extends Object implements LoggerManager
ILoggerFactory
as a backing for a Plexus
LoggerManager
,
ignoring Plexus logger API parts that are not classical and probably not really used.ROLE
Constructor and Description |
---|
Slf4jLoggerManager() |
Modifier and Type | Method and Description |
---|---|
int |
getActiveLoggerCount()
Warning: ignored (always return
0 ). |
Logger |
getLoggerForComponent(String role) |
Logger |
getLoggerForComponent(String role,
String hint)
The logger name for a component with a non-null hint is
role.hint . |
int |
getThreshold()
Warning: ignored (always return
0 ). |
void |
returnComponentLogger(String role)
Warning: ignored.
|
void |
returnComponentLogger(String role,
String hint)
Warning: ignored.
|
void |
setThreshold(int threshold)
Warning: ignored.
|
void |
setThresholds(int threshold)
Warning: ignored.
|
public Slf4jLoggerManager()
public Logger getLoggerForComponent(String role)
getLoggerForComponent
in interface LoggerManager
public Logger getLoggerForComponent(String role, String hint)
role.hint
.
Warning: this does not conform to logger name as class name convention.
(and what about null
and default
hint equivalence?)getLoggerForComponent
in interface LoggerManager
public void returnComponentLogger(String role)
returnComponentLogger
in interface LoggerManager
public void returnComponentLogger(String role, String hint)
returnComponentLogger
in interface LoggerManager
public int getThreshold()
0
).getThreshold
in interface LoggerManager
public void setThreshold(int threshold)
setThreshold
in interface LoggerManager
public void setThresholds(int threshold)
setThresholds
in interface LoggerManager
public int getActiveLoggerCount()
0
).getActiveLoggerCount
in interface LoggerManager
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.