public class DevModeLoggingFixes extends Object
UseMirroredClasses
Constructor and Description |
---|
DevModeLoggingFixes() |
Modifier and Type | Method and Description |
---|---|
static String |
getLoggerName(LogRecord record)
Replaces all logRecord.getLoggerName() calls, removing a thread specific
prefix which is appended to all logger names in dev mode in order to
maintain a pseudo tree of loggers for each thread.
|
static String |
getName(Logger logger)
Replaces all logger.getName() calls, removing a thread specific prefix
which is appended to all logger names in dev mode in order to maintain
a pseudo tree of loggers for each thread.
|
static Logger |
loggerGetLogger(String name)
Replaces all Logger.getLogger(name) calls, adding a thread specific prefix
which is appended to all logger names in dev mode in order to maintain
a pseudo tree of loggers for each thread.
|
static Logger |
logManagerGetLogger(LogManager manager,
String name)
Replaces all LogManager.getLogger(name) calls, adding a thread specific
prefix which is appended to all logger names in dev mode in order to
maintain a pseudo tree of loggers for each thread.
|
static Enumeration<String> |
logManagerGetLoggerNames(LogManager manager)
Replaces all LogManager.getLoggerNames() calls, deleting the thread specific
prefix which is appended to all logger names in dev mode in order to
maintain a pseudo tree of loggers for each thread.
|
public static String getLoggerName(LogRecord record)
public static String getName(Logger logger)
public static Logger loggerGetLogger(String name)
public static Logger logManagerGetLogger(LogManager manager, String name)
public static Enumeration<String> logManagerGetLoggerNames(LogManager manager)
Copyright © 2018. All rights reserved.