Provides methods for bundles to obtain named Loggers that can be used
to write messages to the log.
Logger names should be in the form of a fully qualified Java class names with
segments separated by full stop ('.' \u002E). For example:
com.foo.BarLogger names exist in a hierarchy. A logger name is said to be an ancestor of another logger name if the logger name followed by a full stop (
'.'
\u002E) is a prefix of the descendant logger name. The
root logger name is the top ancestor of the
logger name hierarchy. For example:
com.foo.Bar com.foo com ROOT
| Modifier and Type | Method and Description |
|---|---|
| public Logger | Returns: TheLogger named with the specified name. If the name
parameter is equal to Logger#ROOT_LOGGER_NAME, then the
root logger is returned.The name to use for the logger name. Must not be
name)null.Return the |
| public Logger | |
| public < The Logger type. L extends Logger> L | Returns: TheLogger or FormatterLogger named with the
specified name. If the name parameter is equal to
Logger#ROOT_LOGGER_NAME, then the root logger is
returned.The name to use for the logger name. Must not be
name, Class<L> null.The type of Logger. Can be loggerType)Logger or
FormatterLogger.Return the |
| public < A Logger type. L extends Logger> L | |
| public < The Logger type. L extends Logger> L | Returns: TheLogger or FormatterLogger named with the
specified name for the specified bundle. If the name parameter is
equal to Logger#ROOT_LOGGER_NAME, then the root logger is
returned.The bundle associated with the Logger. Must not be
bundle, String null.The name to use for the logger name. Must not be
name, Class<L> loggerType)null.Return the |
| getLogger | back to summary |
|---|---|
| public Logger getLogger(String name) Return the
| |
| getLogger | back to summary |
|---|---|
| public Logger getLogger(Class<?> clazz) Return the | |
| getLogger | back to summary |
|---|---|
| public <L extends Logger> L getLogger(String name, Class<L> loggerType) Return the
| |
| getLogger | back to summary |
|---|---|
| public <L extends Logger> L getLogger(Class<?> clazz, Class<L> loggerType) Return the
| |
| getLogger | back to summary |
|---|---|
| public <L extends Logger> L getLogger(Bundle bundle, String name, Class<L> loggerType) Return the
This method is not normally used. The other
| |