public class Log extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultLevelPropertyName |
static String |
defaultLoggerFactoryPropertyName |
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static net.pwall.log.LoggerFactory<?> |
getDefaultLoggerFactory()
Get the default
LoggerFactory (initially a DynamicLoggerFactory). |
static net.pwall.log.Logger |
getLogger()
Get a
Logger from the default LoggerFactory, with the name of the calling class. |
static net.pwall.log.Logger |
getLogger(Class<?> javaClass)
|
static net.pwall.log.Logger |
getLogger(Class<?> javaClass,
Clock clock)
|
static net.pwall.log.Logger |
getLogger(Class<?> javaClass,
net.pwall.log.Level level)
|
static net.pwall.log.Logger |
getLogger(Class<?> javaClass,
net.pwall.log.Level level,
Clock clock)
|
static net.pwall.log.Logger |
getLogger(Clock clock)
Get a
Logger from the default LoggerFactory, with the name of the calling class and the specified
clock. |
static net.pwall.log.Logger |
getLogger(net.pwall.log.Level level)
Get a
Logger from the default LoggerFactory, with the name of the calling class and the specified
level. |
static net.pwall.log.Logger |
getLogger(net.pwall.log.Level level,
Clock clock)
Get a
Logger from the default LoggerFactory, with the name of the calling class and the specified
level and clock. |
static net.pwall.log.Logger |
getLogger(String name)
Get a
Logger from the default LoggerFactory, with the specified name. |
static net.pwall.log.Logger |
getLogger(String name,
Clock clock)
Get a
Logger from the default LoggerFactory, with the specified name and clock. |
static net.pwall.log.Logger |
getLogger(String name,
net.pwall.log.Level level)
Get a
Logger from the default LoggerFactory, with the specified name and level. |
static net.pwall.log.Logger |
getLogger(String name,
net.pwall.log.Level level,
Clock clock)
Get a
Logger from the default LoggerFactory, with the specified name, level and clock. |
static void |
setDefaultLoggerFactory(net.pwall.log.LoggerFactory<?> loggerFactory)
Set the default
LoggerFactory. |
public static final String defaultLoggerFactoryPropertyName
public static final String defaultLevelPropertyName
public static net.pwall.log.LoggerFactory<?> getDefaultLoggerFactory()
LoggerFactory (initially a DynamicLoggerFactory).LoggerFactorypublic static void setDefaultLoggerFactory(net.pwall.log.LoggerFactory<?> loggerFactory)
LoggerFactory.loggerFactory - the new default LoggerFactorypublic static net.pwall.log.Logger getLogger()
Logger from the default LoggerFactory, with the name of the calling class.Loggerpublic static net.pwall.log.Logger getLogger(net.pwall.log.Level level)
Logger from the default LoggerFactory, with the name of the calling class and the specified
level.level - the levelLoggerpublic static net.pwall.log.Logger getLogger(Clock clock)
Logger from the default LoggerFactory, with the name of the calling class and the specified
clock.clock - the clockLoggerpublic static net.pwall.log.Logger getLogger(net.pwall.log.Level level,
Clock clock)
Logger from the default LoggerFactory, with the name of the calling class and the specified
level and clock.level - the levelclock - the clockLoggerpublic static net.pwall.log.Logger getLogger(String name)
Logger from the default LoggerFactory, with the specified name.name - the nameLoggerpublic static net.pwall.log.Logger getLogger(String name, net.pwall.log.Level level)
Logger from the default LoggerFactory, with the specified name and level.name - the namelevel - the levelLoggerpublic static net.pwall.log.Logger getLogger(String name, Clock clock)
Logger from the default LoggerFactory, with the specified name and clock.name - the nameclock - the clockLoggerpublic static net.pwall.log.Logger getLogger(String name, net.pwall.log.Level level, Clock clock)
Logger from the default LoggerFactory, with the specified name, level and clock.name - the namelevel - the levelclock - the clockLoggerpublic static net.pwall.log.Logger getLogger(Class<?> javaClass)
javaClass - the ClassLoggerpublic static net.pwall.log.Logger getLogger(Class<?> javaClass, net.pwall.log.Level level)
javaClass - the Classlevel - the levelLoggerpublic static net.pwall.log.Logger getLogger(Class<?> javaClass, Clock clock)
javaClass - the Classclock - the clockLoggerCopyright © 2024. All rights reserved.