| au.id.jericho.lib.html.LoggerProvider
All known Subclasses: au.id.jericho.lib.html.LoggerProviderJCL, au.id.jericho.lib.html.LoggerProviderLog4J, au.id.jericho.lib.html.LoggerProviderSLF4J, au.id.jericho.lib.html.LoggerProviderJava, au.id.jericho.lib.html.LoggerProviderDisabled, au.id.jericho.lib.html.LoggerProviderSTDERR,
LoggerProvider | public interface LoggerProvider (Code) | | Defines the interface for a factory class to provide
Logger instances for each
Source object.
It is not usually necessary for users to create implementations of this interface, as
several predefined instances are defined which provide the most commonly required
Logger implementations.
By default, a LoggerProvider is chosen automatically according to the algorithm described in the static
Config.LoggerProvider property.
This automatic choice can be overridden by setting the
Config.LoggerProvider property manually with an instance of this interface,
but this is also usually not necessary.
|
Method Summary | |
Logger | getLogger(String name) Creates a new
Logger instance with the specified name.
The name argument is used by the underlying logging implementation, and is normally a dot-separated name based on
the package name or class name of the subsystem.
The name used for all automatically created
Logger instances is "net.htmlparser.jericho ".
Parameters: name - the name of the logger, the use of which is determined by the underlying logging implementation, may be null . |
JAVA | final public static LoggerProvider JAVA(Code) | | A
LoggerProvider implementation that wraps the standard java.util.logging system included in the Java SDK version 1.4 and above.
This is the default used if no other logging framework is detected. See the description of the static
Config.LoggerProvider property for more details.
The following mapping of logging levels is used:
|
STDERR | final public static LoggerProvider STDERR(Code) | | A
LoggerProvider implementation that sends all log messages to the standard error output stream (System.err ).
The implementation uses the following code to create each logger:
new
WriterLogger (new OutputStreamWriter(System.err),name)
|
getLogger | Logger getLogger(String name)(Code) | | Creates a new
Logger instance with the specified name.
The name argument is used by the underlying logging implementation, and is normally a dot-separated name based on
the package name or class name of the subsystem.
The name used for all automatically created
Logger instances is "net.htmlparser.jericho ".
Parameters: name - the name of the logger, the use of which is determined by the underlying logging implementation, may be null . a new Logger instance with the specified name. |
|
|