Any change to the configuration of this Logger Context must be effective immediately for all loggers that would rely upon the configuration of this Logger Context.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | LOGGER_CONTEXT_DEFAULT_LOGLEVEL
Framework launching property specifying the default log level of the root Logger Context. |
| public static final String | LOGGER_CONTEXT_PID
Logger Context PID. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public LogLevel | Returns: The effective log level of the logger name in this Logger Context.The logger name. name)Returns the effective log level of the logger name in this Logger Context. |
| public Map | Returns: The configured log levels for this Logger Context. The keys are the logger names and the values are the log levels. The returned map may be empty if no logger names are configured for this Logger Context. The returned map is the property of the caller who can modify the map and use it as input tosetLogLevels(Map). The returned map must support all
optional Map operations.Returns the configured log levels for this Logger Context. |
| public String | Returns: The name for this Logger Context. The root Logger Context has no name and returnsnull.Returns the name for this Logger Context. |
| public boolean | Returns: true if this Logger Context has no configuration. That
is, the configured log levels are empty. Otherwise false
is returned.Returns whether the configuration of this Logger Context is empty. |
| public void | setLogLevels(Map<String, LogLevel>
The log levels to configure for this Logger Context. The
keys are the logger names and the values are the log levels.
The specified map is the property of the caller and this
method must not modify or retain the specified map. logLevels)Configure the log levels for this Logger Context. |
| LOGGER_CONTEXT_DEFAULT_LOGLEVEL | back to summary |
|---|---|
| public static final String LOGGER_CONTEXT_DEFAULT_LOGLEVEL Framework launching property specifying the default log level of the root Logger Context.
The value of this property must be the name of the one of the
If not specified, or the specified value is not the name of the one of
the
| |
| LOGGER_CONTEXT_PID | back to summary |
|---|---|
| public static final String LOGGER_CONTEXT_PID Logger Context PID. If Configuration Admin is present, Logger Context configuration information in Configuration Admin must be used. The name of the Logger Context is mapped to a Configuration Admin targeted PID as follows:
| |
| clear | back to summary |
|---|---|
| public void clear() Clear the configuration of this Logger Context. The configured log levels will be cleared. | |
| getEffectiveLogLevel | back to summary |
|---|---|
| public LogLevel getEffectiveLogLevel(String name) Returns the effective log level of the logger name in this Logger Context. The effective log level for a logger name is found by the following steps:
| |
| getLogLevels | back to summary |
|---|---|
| public Map Returns the configured log levels for this Logger Context.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name for this Logger Context.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns whether the configuration of this Logger Context is empty.
| |
| setLogLevels | back to summary |
|---|---|
| public void setLogLevels(Map<String, LogLevel> logLevels) Configure the log levels for this Logger Context. All previous log levels configured for this Logger Context are cleared and then the log levels in the specified map are configured. The configured log levels for this Logger Context can be set by both this method and by configuration information in Configuration Admin, if Configuration Admin is present. The configured log levels for this Logger Context are based upon the last technique used to update the configured log levels. This method must not modify or set configuration information in Configuration Admin. | |