public class DefaultLoggerFactory extends LoggerFactory
LoggerFactory, which tries to create a Logger as follows:
LoggerFactory has been provided, call that and return the resultslf4j is available on the class path, create an Slf4jLoggerjava.util.logging.config.file is present, or if the file
logging.properties is present as a resource, create a JavaLoggerConsoleLogger| Constructor and Description |
|---|
DefaultLoggerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DefaultLoggerFactory |
getInstance()
Get the shared
DefaultLoggerFactory instance. |
Logger |
getLogger(String name)
Get a
Logger with the specified name. |
Logger |
getLogger(String name,
Level level)
|
getConsoleLogger, getDefault, getDefaultLevel, getDefaultLogger, getDefaultLogger, getLogger, getLogger, setDefault, setDefaultLevelpublic Logger getLogger(String name)
Logger with the specified name. See the class documentation for the rules used to determine the
type of Logger returned.getLogger in class LoggerFactoryname - the nameLoggerNullPointerException - if the name is nullpublic Logger getLogger(String name, Level level)
Logger with the specified name and Level. See the class documentation for the rules used
to determine the type of Logger returned.getLogger in class LoggerFactoryname - the namelevel - the LevelLoggerNullPointerException - if the name is nullpublic static DefaultLoggerFactory getInstance()
DefaultLoggerFactory instance.Copyright © 2021. All rights reserved.