The name (org.apache.commons.logging.Log.allowFlawedContext
)
of the system property which can be set true/false to
determine system behaviour when a bad context-classloader is encountered.
The name (org.apache.commons.logging.Log.allowFlawedDiscovery
)
of the system property which can be set true/false to
determine system behaviour when a bad logging adapter class is
encountered during logging discovery.
The name (org.apache.commons.logging.Log.allowFlawedHierarchy
)
of the system property which can be set true/false to
determine system behaviour when a logging adapter class is
encountered which has bound to the wrong Log class implementation.
See getBaseClassLoader and initConfiguration.
See handleFlawedDiscovery and initConfiguration.
See handleFlawedHierarchy and initConfiguration.
Configuration attributes.
Implementation of commons-logging Log interface that delegates all
logging calls to the Avalon logging abstraction: the Logger interface.
Constructs an AvalonLogger
that outputs to the given
Logger
instance.
Remember this factory, so later calls to LogFactory.getCachedFactory
can return the previously created object (together with all its
cached Log objects).
The underlying cause of this exception.
The names of classes that will be tried (in order) as logging
adapters.
Invoked when a webapp is undeployed, this tells the LogFactory
class to release any logging information related to the current
contextClassloader.
Invoked when a webapp is deployed.
Implements the operations described in the javadoc for newFactory.
Create the hashtable which will be used to store a map of
(context-classloader -> logfactory-object).
Attempts to load the given class, find a suitable constructor,
and instantiate an instance of Log.
The date and time format to use in the log message
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
Logs a message with java.util.logging.Level.FINE
.
Logs a message with java.util.logging.Level.FINE
.
Log a message with debug log level.
Logs a message with org.apache.log4j.Priority.DEBUG
.
Logs a message with org.apache.log.Priority.DEBUG
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG
.
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
Logs a message with java.util.logging.Level.FINE
.
Logs a message with java.util.logging.Level.FINE
.
Log an error with debug log level.
Logs a message with org.apache.log4j.Priority.DEBUG
.
Logs a message with org.apache.log.Priority.DEBUG
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_DEBUG
.
The default format to use when formating dates
A string that gets prefixed to every message output by the
logDiagnostic method, so that users can clearly see which
LogFactory class is generating the output.
The string prefixed to every message output by the logDiagnostic method.
The name (org.apache.commons.logging.diagnostics.dest
)
of the property used to enable internal commons-logging
diagnostic output, in order to get information on what logging
implementations are being discovered, what classloaders they
are loaded through, etc.
When null (the usual case), no diagnostic output will be
generated by LogFactory or LogFactoryImpl.
Return the thread context class loader if available; otherwise return
null.
Attempts to create a Log instance for the given category name.
This member variable simply ensures that any attempt to initialise
this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
This member variable simply ensures that any attempt to initialise
this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
Logs a message with
org.apache.avalon.framework.logger.Logger.error
.
Logs a message with java.util.logging.Level.SEVERE
.
Logs a message with java.util.logging.Level.SEVERE
.
Log a message with error log level.
Logs a message with org.apache.log4j.Priority.ERROR
.
Logs a message with org.apache.log.Priority.ERROR
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR
.
Logs a message with
org.apache.avalon.framework.logger.Logger.error
.
Logs a message with java.util.logging.Level.SEVERE
.
Logs a message with java.util.logging.Level.SEVERE
.
Log an error with error log level.
Logs a message with org.apache.log4j.Priority.ERROR
.
Logs a message with org.apache.log.Priority.ERROR
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR
.
The previously constructed LogFactory
instances, keyed by
the ClassLoader
with which it was created.
The fully qualified class name of the fallback LogFactory
implementation class to use, if no other can be found.
The name (commons-logging.properties
) of the properties file to search for.
The name (org.apache.commons.logging.LogFactory
) of the property
used to identify the LogFactory implementation
class name.
Logs a message with
org.apache.avalon.framework.logger.Logger.fatalError
.
Logs a message with java.util.logging.Level.SEVERE
.
Logs a message with java.util.logging.Level.SEVERE
.
Log a message with fatal log level.
Logs a message with org.apache.log4j.Priority.FATAL
.
Logs a message with org.apache.log.Priority.FATAL_ERROR
.
Log a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL
.
Logs a message with
org.apache.avalon.framework.logger.Logger.fatalError
.
Logs a message with java.util.logging.Level.SEVERE
.
Logs a message with java.util.logging.Level.SEVERE
.
Log an error with fatal log level.
Logs a message with org.apache.log4j.Priority.FATAL
.
Logs a message with org.apache.log.Priority.FATAL_ERROR
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_FATAL
.
Checks system properties and the attribute map for
a Log implementation specified by the user under the
property names
LOG_PROPERTY
or
LOG_PROPERTY_OLD
.
The fully qualified name of the Log4JLogger class.
Return the configuration attribute with the specified name (if any),
or null
if there is no such attribute.
Return the configuration attribute with the specified name (if any),
or null
if there is no such attribute.
Return an array containing the names of all currently defined
configuration attributes.
Return an array containing the names of all currently defined
configuration attributes.
Return the classloader from which we should try to load the logging
adapter classes.
Get the setting for the user-configurable behaviour specified by key.
Check cached factories (keyed by contextClassLoader)
Return the underlying cause of this exception (if any).
Gets the class and method by looking at the stack trace for the
first entry that is not this class.
Safely get access to the classloader for the specified class.
Workaround for bug in Java1.2; in theory this method is not needed.
Locate a user-provided configuration file.
Attempt to find an attribute (see method setAttribute) or a
system property with the provided name and return its value.
Returns the current context classloader.
Gets the context classloader.
Return the thread context class loader if available.
Calls LogFactory.directGetContextClassLoader under the control of an
AccessController class.
Calls LogFactory.directGetContextClassLoader under the control of an
AccessController class.
Construct (if necessary) and return a LogFactory
instance, using the following ordered lookup procedure to determine
the name of the implementation class to be loaded.
Convenience method to derive a name from the specified class and
call getInstance(String)
with it.
Convenience method to derive a name from the specified class and
call getInstance(String)
with it.
Get a Log
instance by class
Construct (if necessary) and return a Log
instance,
using the factory's current set of configuration attributes.
Construct (if necessary) and return a Log
instance,
using the factory's current set of configuration attributes.
Get a Log
instance by class name
Convenience method to return a named logger, without the application
having to care about factories.
Convenience method to return a named logger, without the application
having to care about factories.
Return the fully qualified Java classname of the
Log
implementation we will be using.
Return the
Constructor
that can be called to instantiate
new
Log
instances.
Gets the Avalon logger implementation used to perform logging.
Return the native Logger instance we are using.
Return the native Logger instance we are using.
Return the native Logger instance we are using.
Return the underlying Logger we are using.
Returns a String
array containing the names of
all logs known to me.
Given two related classloaders, return the one which is a child of
the other.
Fetch the parent classloader of a specified classloader.
Given a URL that refers to a .properties file, load that file.
Applets may run in an environment where accessing resources of a loader is
a secure operation, but where the commons-logging library has explicitly
been granted permission for that operation.
Given a filename, return an enumeration of URLs pointing to
all the occurrences of that filename in the classpath.
Read the specified system property, using an AccessController so that
the property can be read if JCL has been granted the appropriate
security rights even if the calling code has not.
Read the specified system property, using an AccessController so that
the property can be read if JCL has been granted the appropriate
security rights even if the calling code has not.
Determines whether the given class actually implements LogFactory
.
Logs a message with
org.apache.avalon.framework.logger.Logger.info
.
Logs a message with java.util.logging.Level.INFO
.
Logs a message with java.util.logging.Level.INFO
.
Log a message with info log level.
Logs a message with org.apache.log4j.Priority.INFO
.
Logs a message with org.apache.log.Priority.INFO
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_INFO
.
Logs a message with
org.apache.avalon.framework.logger.Logger.info
.
Logs a message with java.util.logging.Level.INFO
.
Logs a message with java.util.logging.Level.INFO
.
Log an error with info log level.
Logs a message with org.apache.log4j.Priority.INFO
.
Logs a message with org.apache.log.Priority.INFO
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_INFO
.
Appends message if the given name is similar to the candidate.
Initialize a number of variables that control the behaviour of this
class and that can be tweaked by the user.
Determines whether the user wants internal diagnostic output.
Calculate and cache a string that uniquely identifies this instance,
including which classloader the object was loaded from.
The
Log
instances that have
already been created, keyed by logger name.
Is logging to
org.apache.avalon.framework.logger.Logger.debug
enabled?
Is debug logging currently enabled?
Is debug logging currently enabled?
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example,
String
concatenation)
when the log level is more than debug.
Check whether the Log4j Logger used is enabled for DEBUG
priority.
Checks whether the LogKit
logger will log messages of priority DEBUG
.
Are debug messages currently enabled?
This allows expensive operations such as
String
concatenation to be avoided when the message will be ignored by the
logger.
Indicates true if the user has enabled internal logging.
Workaround for bug in Java1.2; in theory this method is not needed.
Is logging to
org.apache.avalon.framework.logger.Logger.error
enabled?
Is error logging currently enabled?
Is error logging currently enabled?
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example,
String
concatenation)
when the log level is more than error.
Check whether the Log4j Logger used is enabled for ERROR
priority.
Checks whether the LogKit
logger will log messages of priority ERROR
.
Are error messages currently enabled?
This allows expensive operations such as
String
concatenation to be avoided when the message will be ignored by the
logger.
Is logging to
org.apache.avalon.framework.logger.Logger.fatalError
enabled?
Is fatal logging currently enabled?
Is fatal logging currently enabled?
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example,
String
concatenation)
when the log level is more than fatal.
Check whether the Log4j Logger used is enabled for FATAL
priority.
Checks whether the LogKit
logger will log messages of priority FATAL_ERROR
.
Are fatal messages currently enabled?
This allows expensive operations such as
String
concatenation to be avoided when the message will be ignored by the
logger.
Is logging to
org.apache.avalon.framework.logger.Logger.info
enabled?
Is info logging currently enabled?
Is info logging currently enabled?
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example,
String
concatenation)
when the log level is more than info.
Check whether the Log4j Logger used is enabled for INFO
priority.
Checks whether the LogKit
logger will log messages of priority INFO
.
Are info messages currently enabled?
This allows expensive operations such as
String
concatenation to be avoided when the message will be ignored by the
logger.
Is JDK 1.3 with Lumberjack logging available?
Return true
if JDK 1.4 or later logging
is available.
Is the given log level currently enabled?
Is a Log4J implementation available?
Utility method to check whether a particular logging library is
present and available for use.
Is logging to
org.apache.avalon.framework.logger.Logger.debug
enabled?
Is trace logging currently enabled?
Is trace logging currently enabled?
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example,
String
concatenation)
when the log level is more than trace.
Check whether the Log4j Logger used is enabled for TRACE
priority.
Checks whether the LogKit
logger will log messages of priority DEBUG
.
Are trace messages currently enabled?
This allows expensive operations such as
String
concatenation to be avoided when the message will be ignored by the
logger.
Is logging to
org.apache.avalon.framework.logger.Logger.warn
enabled?
Is warn logging currently enabled?
Is warn logging currently enabled?
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example,
String
concatenation)
when the log level is more than warn.
Check whether the Log4j Logger used is enabled for WARN
priority.
Checks whether the LogKit
logger will log messages of priority WARN
.
Are warn messages currently enabled?
This allows expensive operations such as
String
concatenation to be avoided when the message will be ignored by the
logger.
Log - interface org.apache.commons.logging.
Log A simple logging interface abstracting logging APIs.
Is log4j available (in the current classpath)
Implementation of
Log
that maps directly to a
Logger for log4J version 1.2.
For use with a log4j factory.
Enable all logging levels
The name (
org.apache.commons.logging.Log
) of the system
property identifying our
Log
implementation class.
The deprecated system property used for backwards compatibility with
old versions of JCL.
Generate useful diagnostics regarding the classloader tree for
the specified class.
Name of the class implementing the Log interface.
An exception that is thrown only if a suitable LogFactory
or Log
instance cannot be created by the corresponding
factory methods.
Construct a new exception with null
as its detail message.
Construct a new exception with the specified detail message.
Construct a new exception with the specified detail message and cause.
Construct a new exception with the specified cause and a derived
detail message.
The one-argument constructor of the
Log
implementation class that will be used to create new instances.
The signature of the Constructor to be used.
Write the specified message to the internal logging destination.
Output a diagnostic message to a user-specified destination (if the
user has enabled diagnostic logging).
Factory for creating
Log
instances, with discovery and
configuration features similar to that employed by standard Java APIs
such as JAXP.
Protected constructor that is not available for public use.
Concrete subclass of
LogFactory
that implements the
following algorithm to dynamically select a logging implementation
class to instantiate a wrapper for.
Public no-arguments constructor required by the lookup mechanism.
Avalon logger used to perform log
The underlying Logger implementation we are using.
The underlying Logger implementation we are using.
Logging goes to this LogKit
logger
Jdk13LumberjackLogger class name
Logs diagnostic messages about the given classloader
and it's hierarchy.
Constructor for current log class
Implementation of
org.apache.commons.logging.Log
that wraps the
avalon-logkit
logging system.
Construct LogKitLogger
which wraps the LogKit
logger with given name.
The one-argument
setLogFactory
method of the selected
Log
method, if it exists.
The signature of the setLogFactory
method to be used.
The name of this simple log instance
Write the specified message to the internal logging destination.
logs - static field in class org.apache.commons.logging.
LogSource Factory for creating
Log
instances.
Don't allow others to create instances
This class is capable of receiving notifications about the undeployment of
a webapp, and responds by ensuring that commons-logging releases all
memory associated with the undeployed webapp.
Set the configuration attribute with the specified name.
Set the configuration attribute with the specified name.
Sets the ancesteral Avalon logger from which the delegating loggers
will descend.
Set the log implementation/log implementation factory
by class.
Set the log implementation/log implementation factory
by the name of the class.
The short name of this simple log instance
Include the current time in the log message
Include the instance name in the log message?
Include the short name ( last component ) of the logger in the log
message.
Simple implementation of Log that sends all enabled log messages,
for all defined loggers, to System.err.
Construct a simple log with given name.
Properties loaded from simplelog.properties
All system properties used by SimpleLog
start with this
The name (use_tccl
) of the key in the config file used
to specify whether logging classes should be loaded via the thread
context class loader (TCCL), or not.
A reference to the classloader that loaded this class.
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
Logs a message with java.util.logging.Level.FINEST
.
Logs a message with java.util.logging.Level.FINEST
.
Log a message with trace log level.
Logs a message with org.apache.log4j.Priority.TRACE
.
Logs a message with org.apache.log.Priority.DEBUG
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_TRACE
.
Logs a message with
org.apache.avalon.framework.logger.Logger.debug
.
Logs a message with java.util.logging.Level.FINEST
.
Logs a message with java.util.logging.Level.FINEST
.
Log an error with trace log level.
Logs a message with org.apache.log4j.Priority.TRACE
.
Logs a message with org.apache.log.Priority.DEBUG
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_TRACE
.
Utility method to safely trim a string.
Logs a message with
org.apache.avalon.framework.logger.Logger.warn
.
Logs a message with java.util.logging.Level.WARNING
.
Logs a message with java.util.logging.Level.WARNING
.
Log a message with warn log level.
Logs a message with org.apache.log4j.Priority.WARN
.
Logs a message with org.apache.log.Priority.WARN
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_WARN
.
Logs a message with
org.apache.avalon.framework.logger.Logger.warn
.
Logs a message with java.util.logging.Level.WARNING
.
Logs a message with java.util.logging.Level.WARNING
.
Log an error with warn log level.
Logs a message with org.apache.log4j.Priority.WARN
.
Logs a message with org.apache.log.Priority.WARN
.
Logs a message with
org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_WARN
.
Name used to load the weak hashtable implementation by names
Implementation of Hashtable
that uses WeakReference
's
to hold its keys thus allowing them to be reclaimed by the garbage collector.
Constructs a WeakHashtable with the Hashtable default
capacity and load factor.
WeakReference subclass that holds a hard reference to an
associated value
and also makes accessible
the Referenced object holding it.
Write the content of the message accumulated in the specified
StringBuffer
to the appropriate output destination.