|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggerController
Controller interface to control
loggers
associated with the
component this controller belong. Every loggers define in a component shared
the same base name and have a suffix (can be null
).
Field Summary | |
---|---|
static int |
DEBUG
Logger level for debug message. |
static int |
ERROR
Logger level for error message. |
static int |
FATAL
Logger level for fatal message. |
static int |
INFO
Logger level for info message. |
static int |
INHERIT
Logger level indicates that the level is inherited from logger's ancestors. |
static int |
WARN
Logger level for warning message. |
Method Summary | |
---|---|
String |
getBaseName()
Returns the loggers' base name. |
int |
getLoggerLevel(String loggerName)
Returns the current logging level of a logger |
String[] |
getLoggerNames()
Returns the name of every registered loggers. |
void |
setBaseName(String name)
Sets the loggers' base name. |
void |
setLoggerLevel(String loggerName,
int level)
Sets the logging level of a logger. |
Field Detail |
---|
static final int DEBUG
BasicLevel
levels must be
initialized by monolog factories. So if this interface is used remotly, the
caller may not have initialized it.
static final int INFO
static final int WARN
static final int ERROR
static final int FATAL
static final int INHERIT
Method Detail |
---|
void setBaseName(String name)
name
- the base nameString getBaseName()
int getLoggerLevel(String loggerName)
loggerName
- the name of the logger
INHERIT
if given name is unknown.void setLoggerLevel(String loggerName, int level)
loggerName
- the name of the loggerlevel
- a levelString[] getLoggerNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |