public class LogUtil extends Object
This class relies on the presence of either the
log4j.configuration
or the
log4j.primary.configuration
property.
If neither of those properties is found, then this class searches the CLASSPATH for a log4j configuration. While this is a change from the historical, searching the CLASSPATH is necessary for webapp deployments.
This class understands files with any of the following extensions {
.properties
, .logging
, .xml
. If
neither configuration property is defined, if the resource identified by the
property can not be located, or if a log4j configuration resource can not be
located in the default location along the class path then this class will
will a message on stderr.
A watcher is setup on the log4j configuration if one is found.
This class cannot be instantiated.
https://sourceforge.net/apps/trac/bigdata/ticket/394
Modifier and Type | Class and Description |
---|---|
static interface |
LogUtil.Options |
Constructor and Description |
---|
LogUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.log4j.Logger |
getLog4jLogger(Class componentClass) |
static org.apache.log4j.Logger |
getLog4jLogger(String componentName) |
static org.apache.log4j.Logger |
getLog4jRootLogger() |
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.