public class DefaultLoggerFactory extends LoggerFactory<Logger>
This is a no-op factory placeholder delegating directly to the java util logging framework. It
is used by Logging
as a default (rather than null null
).
Modifier | Constructor and Description |
---|---|
protected |
DefaultLoggerFactory()
Constructs a default factory.
|
Modifier and Type | Method and Description |
---|---|
protected Logger |
getImplementation(String name)
Returns the implementation to use for the logger of the specified name, or
null if
the logger would delegate to Java logging anyway. |
static DefaultLoggerFactory |
getInstance()
Returns the unique instance of this factory.
|
String |
lookupConfiguration()
Look up configuration information, or
null unknown. |
protected Logger |
unwrap(Logger logger)
Returns the implementation wrapped by the specified logger,
or
null if none. |
protected Logger |
wrap(String name,
Logger implementation)
Wraps the specified implementation in a Java logger.
|
getImplementationClass, getLogger
protected DefaultLoggerFactory()
public static DefaultLoggerFactory getInstance()
protected Logger getImplementation(String name)
null
if
the logger would delegate to Java logging anyway.getImplementation
in class LoggerFactory<Logger>
name
- The name of the logger.null
if the target framework would redirect to the Java
logging framework.protected Logger wrap(String name, Logger implementation)
wrap
in class LoggerFactory<Logger>
name
- The name of the logger.implementation
- An implementation returned by LoggerFactory.getImplementation(java.lang.String)
.protected Logger unwrap(Logger logger)
null
if none.unwrap
in class LoggerFactory<Logger>
logger
- The logger to test.null
if none.public String lookupConfiguration()
LoggerFactory
null
unknown.
Report back details on how logging configuration is setup. Ideally including configuration filename along with any system properties used.
lookupConfiguration
in class LoggerFactory<Logger>
null
unknown.Copyright © 1996–2023 Geotools. All rights reserved.