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)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
private static boolean
static final String
static final String
static final String
private static XRLogger
private static boolean
static final String
static final String
static final String
-
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
private static void
init()
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
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
private static String
registerLoggerByName
(String loggerName) 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
-
LOGGER_NAMES
-
CONFIG
-
EXCEPTION
-
GENERAL
-
INIT
-
JUNIT
-
LOAD
-
MATCH
-
CASCADE
-
XML_ENTITIES
-
CSS_PARSE
-
LAYOUT
-
RENDER
-
initPending
private static volatile boolean initPending -
loggerImpl
-
loggingEnabled
private static boolean loggingEnabled
-
-
Constructor Details
-
XRLog
public XRLog()
-
-
Method Details
-
registerLoggerByName
-
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
-
init
private static void init() -
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
-