public class NullLoggerFactory extends LoggerFactory
LoggerFactory that returns only a NullLogger.| Constructor and Description |
|---|
NullLoggerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static NullLoggerFactory |
getInstance()
Get the shared
NullLoggerFactory instance. |
NullLogger |
getLogger(String name)
Get a
NullLogger with the supplied name, using the default Level. |
NullLogger |
getLogger(String name,
Level level)
Get a
NullLogger with the supplied name and Level. |
getConsoleLogger, getDefault, getDefaultLevel, getDefaultLogger, getDefaultLogger, getLogger, getLogger, setDefault, setDefaultLevelpublic NullLogger getLogger(String name)
NullLogger with the supplied name, using the default Level.getLogger in class LoggerFactoryname - the nameNullLoggerNullPointerException - if the name is nullpublic NullLogger getLogger(String name, Level level)
NullLogger with the supplied name and Level.getLogger in class LoggerFactoryname - the namelevel - the LevelNullLoggerNullPointerException - if the name is nullpublic static NullLoggerFactory getInstance()
NullLoggerFactory instance.Copyright © 2021. All rights reserved.