public class LoggerFacade
extends java.lang.Object
| Constructor and Description |
|---|
LoggerFacade() |
| Modifier and Type | Method and Description |
|---|---|
java.util.logging.Logger |
getAnonymousLogger()
Returns an anonymous logger.
|
java.util.logging.Logger |
getLogger(java.lang.Class<?> clazz)
Returns a logger based on the class name of the given object.
|
java.util.logging.Logger |
getLogger(java.lang.Class<?> clazz,
java.lang.String defaultLoggerName)
Returns a logger based on the class name of the given object.
|
java.util.logging.Logger |
getLogger(java.lang.Object object,
java.lang.String defaultLoggerName)
Returns a logger based on the class name of the given object.
|
java.util.logging.Logger |
getLogger(java.lang.String loggerName)
Returns a logger based on the given logger name.
|
public java.util.logging.Logger getAnonymousLogger()
Logger.getAnonymousLogger(). This method should be overridden by
subclasses.public final java.util.logging.Logger getLogger(java.lang.Class<?> clazz)
getLogger(Class, String) with a null default logger
name.clazz - The parent class.public final java.util.logging.Logger getLogger(java.lang.Class<?> clazz,
java.lang.String defaultLoggerName)
clazz - The parent class.defaultLoggerName - The default logger name to use if no one can be inferred from
the class.public final java.util.logging.Logger getLogger(java.lang.Object object,
java.lang.String defaultLoggerName)
getLogger(Class, String) with the object's class as a
first parameter.object - The parent object.defaultLoggerName - The default logger name to use if no one can be inferred from
the object class.public java.util.logging.Logger getLogger(java.lang.String loggerName)
Logger.getLogger(String). This method should be overridden by
subclasses.loggerName - The logger name.Copyright © 2005-2024 Restlet.