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 void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static XRLogger
static void
static void
static void
static boolean
Whether logging is on or off.static void
static void
static void
static void
static void
static void
static List
Returns a list of all loggers that will be accessed by XRLog.static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
setLoggerImpl
(XRLogger loggerImpl) static void
setLoggingEnabled
(boolean loggingEnabled) Turns logging on or off, without affecting logging configuration.static void
xmlEntities
(String msg) static void
xmlEntities
(Level level, String msg) static void
xmlEntities
(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
-