public interface LoggingService
Modifier and Type | Method and Description |
---|---|
String |
getLevel(String loggerName)
Retrieves the effective logging level of the specified logger.
|
String |
getRootLevel() |
void |
setLevel(String loggerName,
String level)
Sets the level for the specified logger to the provided level.
|
void |
setRootLevel(String level)
Sets the output level for the root logger, which is a special logger that is the ultimate parent of all other
loggers in the system.
|
@Nonnull String getLevel(String loggerName)
loggerName
- the name of the logger to retrieve the output level for@Nonnull String getRootLevel()
void setLevel(String loggerName, String level)
OFF
disables all output from the specified logger. All other levels include output at
that specific level as well as all output from the levels below them (meaning TRACE
will include output
at DEBUG
, INFO
, WARN
and ERROR
levels).loggerName
- the name of the logger to adjust the output level forlevel
- the new output level for the loggervoid setRootLevel(String level)
level
- the new output level for the root loggersetLevel(String, String)
Copyright © 2019 Atlassian. All rights reserved.