Class JDKXRLogger
java.lang.Object
org.openpdf.util.JDKXRLogger
- All Implemented Interfaces:
XRLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidprivate static voidconfigureLoggerHandlerForwarding(Properties fsLoggingProperties, List<Logger> loggers) configureLogHandlers(List<Logger> loggers, String handlerClassList) For each logger provided, assigns the logger an instance of the named log output handlers.private static voidconfigureLogLevel(String loggerName, String levelValue) Parses the levelValue into a Level instance and assigns to the Logger instance named by loggerName; if the levelValue is invalid (e.g.private static LoggerSame purpose as Logger.getLogger(), except that the static initialization for XRLog will initialize the LogManager with logging levels and other configuration.private static voidinitializeJDKLogManager(Properties fsLoggingProperties) voidvoidReturns a List of all Logger instances used by Flying Saucer from the JDK LogManager; these will be automatically created if they aren't already available.private static Propertiesvoid
-
Constructor Details
-
JDKXRLogger
public JDKXRLogger()
-
-
Method Details
-
log
-
log
-
setLevel
-
getLogger
-
retrieveLoggingProperties
-
initializeJDKLogManager
-
configureLoggerHandlerForwarding
private static void configureLoggerHandlerForwarding(Properties fsLoggingProperties, List<Logger> loggers) -
assignFormatter
-
retrieveLoggers
-
configureLogHandlers
@CheckReturnValue private static Map<String,Handler> configureLogHandlers(List<Logger> loggers, String handlerClassList) For each logger provided, assigns the logger an instance of the named log output handlers. Will attempt to instantiate each handler; any which can't be instantiated will cause the method to throw a RuntimeException.- Parameters:
loggers- List of Logger instances.handlerClassList- A space-separated string (following the configuration convention for JDK logging configuration files, for handlers) of FQN of log handlers.- Returns:
- Map of handler class names to handler instances.
-
configureLogLevel
-