Package org.xhtmlrenderer.util
Class XRLog
java.lang.Object
org.xhtmlrenderer.util.XRLog
Utility class for using the java.util.logging package. Relies on the standard
configuration for logging, but gives easier access to the various logs
(plumbing.load, .init, .render)
- Author:
- empty
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic XRLoggerstatic voidstatic voidstatic voidstatic booleanWhether logging is on or off.static voidstatic voidstatic voidstatic voidstatic voidstatic voidReturns a list of all loggers that will be accessed by XRLog.static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidsetLoggerImpl(XRLogger loggerImpl) static voidsetLoggingEnabled(boolean loggingEnabled) Turns logging on or off, without affecting logging configuration.static voidxmlEntities(String msg) static voidxmlEntities(Level level, String msg) static voidxmlEntities(Level level, String msg, Throwable th)
-
Field Details
-
CONFIG
-
EXCEPTION
-
GENERAL
-
INIT
-
JUNIT
-
LOAD
-
MATCH
-
CASCADE
-
XML_ENTITIES
-
CSS_PARSE
-
LAYOUT
-
RENDER
-
-
Constructor Details
-
XRLog
public XRLog()
-
-
Method Details
-
listRegisteredLoggers
Returns a list of all loggers that will be accessed by XRLog. Each entry is a String with a logger name, which can be used to retrieve the logger using the corresponding Logging API; example name might be "org.xhtmlrenderer.config"- Returns:
- List of loggers, never null.
-
cssParse
-
cssParse
-
cssParse
-
xmlEntities
-
xmlEntities
-
xmlEntities
-
cascade
-
cascade
-
cascade
-
exception
-
exception
-
general
-
general
-
general
-
init
-
init
-
init
-
junit
-
junit
-
junit
-
load
-
load
-
load
-
match
-
match
-
match
-
layout
-
layout
-
layout
-
render
-
render
-
render
-
log
-
log
-
main
-
setLevel
-
isLoggingEnabled
public static boolean isLoggingEnabled()Whether logging is on or off.- Returns:
- Returns true if logging is enabled, false if not. Corresponds to configuration file property xr.util-logging.loggingEnabled, or to value passed to setLoggingEnabled(bool).
-
setLoggingEnabled
public static void setLoggingEnabled(boolean loggingEnabled) Turns logging on or off, without affecting logging configuration.- Parameters:
loggingEnabled- Flag whether logging is enabled or not; if false, all logging calls fail silently. Corresponds to configuration file property xr.util-logging.loggingEnabled
-
getLoggerImpl
-
setLoggerImpl
-