java.util.logging.Logger interface.
The class also makes sure that logger names of each Metro subsystem are consistent
with each other.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Logger | |
| private static final Level | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static Logger | |
| public static Logger | Returns: logger instance preconfigured for use with the componentcustom name of the logger. customLoggerName, final Class<?> class of the component that will use the logger instance. Must not be componentClass)null.The factory method returns preconfigured Logger wrapper for the class. |
| pack-priv static final String | Returns: system logger name for the givencomponentClass instanceclass of the component that will use the logger instance. Must not be componentClass)null.Calculates the subsystem suffix based on the package of the component class |
| public void | |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public < type T extends Throwable> T | Returns: the same exception instance that was passed in as theexception
parameter.exception whose message should be logged. Must not be
exception, final Throwable null.initial cause of the exception that should be logged as well
and set as cause, final Level exception's original cause. May be null.loging level which should be used for logging level)Method logs |
| public < type T extends Throwable> T | Returns: the same exception instance that was passed in as theexception
parameter.exception whose message should be logged. Must not be
exception, final boolean null.deterimnes whether initial cause of the exception should
be logged as well logCause, final Level loging level which should be used for logging level)Method logs |
| public < type T extends Throwable> T | Returns: the same exception instance that was passed in as theexception
parameter.exception whose message should be logged. Must not be
exception, final Level null.loging level which should be used for logging level)Same as |
| public < type T extends Throwable> T | Returns: the same exception instance that was passed in as theexception
parameter.exception whose message should be logged. Must not be
exception, final Throwable null.initial cause of the exception that should be logged as well
and set as cause)exception's original cause. May be null.Method logs |
| public < type T extends Throwable> T | Returns: the same exception instance that was passed in as theexception
parameter.exception whose message should be logged. Must not be
exception, final boolean null.deterimnes whether initial cause of the exception should
be logged as well logCause)Method logs |
| public < type T extends Throwable> T | Returns: the same exception instance that was passed in as theexception
parameter.exception whose message should be logged. Must not be
exception)null.Same as |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| componentClassName | back to summary |
|---|---|
| private final String componentClassName | |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| METHOD_CALL_LEVEL_VALUE | back to summary |
|---|---|
| private static final Level METHOD_CALL_LEVEL_VALUE | |
| ROOT_WS_PACKAGE | back to summary |
|---|---|
| private static final String ROOT_WS_PACKAGE | |
| WS_LOGGING_SUBSYSTEM_NAME_ROOT | back to summary |
|---|---|
| private static final String WS_LOGGING_SUBSYSTEM_NAME_ROOT | |
| Logger | back to summary |
|---|---|
| protected Logger(final String systemLoggerName, final String componentName) Prevents creation of a new instance of this Logger unless used by a subclass. | |
| config | back to summary |
|---|---|
| public void config(final String message) | |
| config | back to summary |
|---|---|
| public void config(final String message, Object[] params) | |
| config | back to summary |
|---|---|
| public void config(final String message, final Throwable thrown) | |
| entering | back to summary |
|---|---|
| public void entering() | |
| entering | back to summary |
|---|---|
| public void entering(final Object... parameters) | |
| exiting | back to summary |
|---|---|
| public void exiting() | |
| exiting | back to summary |
|---|---|
| public void exiting(final Object result) | |
| fine | back to summary |
|---|---|
| public void fine(final String message) | |
| fine | back to summary |
|---|---|
| public void fine(final String message, final Throwable thrown) | |
| finer | back to summary |
|---|---|
| public void finer(final String message) | |
| finer | back to summary |
|---|---|
| public void finer(final String message, Object[] params) | |
| finer | back to summary |
|---|---|
| public void finer(final String message, final Throwable thrown) | |
| finest | back to summary |
|---|---|
| public void finest(final String message) | |
| finest | back to summary |
|---|---|
| public void finest(final String message, Object[] params) | |
| finest | back to summary |
|---|---|
| public void finest(final String message, final Throwable thrown) | |
| getLogger | back to summary |
|---|---|
| public static Logger getLogger(final Class<?> componentClass)
The factory method returns preconfigured Logger wrapper for the class. Method calls
Since there is no caching implemented, it is advised that the method is called only once per a class in order to initialize a final static logger variable, which is then used through the class to perform actual logging tasks.
| |
| getLogger | back to summary |
|---|---|
| public static Logger getLogger(final String customLoggerName, final Class<?> componentClass) The factory method returns preconfigured Logger wrapper for the class. Since there is no caching implemented,
it is advised that the method is called only once per a class in order to initialize a final static logger variable,
which is then used through the class to perform actual logging tasks.
This method should be only used in a special cases when overriding of a default logger name derived from the
package of the component class is needed. For all common use cases please use
| |
| getSystemLoggerName | back to summary |
|---|---|
| pack-priv static final String getSystemLoggerName(Class<?> componentClass) Calculates the subsystem suffix based on the package of the component class | |
| info | back to summary |
|---|---|
| public void info(final String message) | |
| info | back to summary |
|---|---|
| public void info(final String message, Object[] params) | |
| info | back to summary |
|---|---|
| public void info(final String message, final Throwable thrown) | |
| isLoggable | back to summary |
|---|---|
| public boolean isLoggable(final Level level) | |
| isMethodCallLoggable | back to summary |
|---|---|
| public boolean isMethodCallLoggable() | |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message) | |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message, Object param1) | |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message, Object[] params) | |
| log | back to summary |
|---|---|
| public void log(final Level level, final String message, final Throwable thrown) | |
| logException | back to summary |
|---|---|
| public <T extends Throwable> T logException(final T exception, final Throwable cause, final Level level) Method logs
If
| |
| logException | back to summary |
|---|---|
| public <T extends Throwable> T logException(final T exception, final boolean logCause, final Level level) Method logs
If
| |
| logException | back to summary |
|---|---|
| public <T extends Throwable> T logException(final T exception, final Level level) Same as
| |
| logSevereException | back to summary |
|---|---|
| public <T extends Throwable> T logSevereException(final T exception, final Throwable cause) Method logs
If
| |
| logSevereException | back to summary |
|---|---|
| public <T extends Throwable> T logSevereException(final T exception, final boolean logCause) Method logs
If
| |
| logSevereException | back to summary |
|---|---|
| public <T extends Throwable> T logSevereException(final T exception) Same as
| |
| setLevel | back to summary |
|---|---|
| public void setLevel(final Level level) | |
| severe | back to summary |
|---|---|
| public void severe(final String message) | |
| severe | back to summary |
|---|---|
| public void severe(final String message, Object[] params) | |
| severe | back to summary |
|---|---|
| public void severe(final String message, final Throwable thrown) | |
| warning | back to summary |
|---|---|
| public void warning(final String message) | |
| warning | back to summary |
|---|---|
| public void warning(final String message, Object[] params) | |
| warning | back to summary |
|---|---|
| public void warning(final String message, final Throwable thrown) | |