| java.lang.Object org.jamwiki.utils.WikiLogger
WikiLogger | public class WikiLogger (Code) | | This class provides a wrapper around the
java.util.logging.Logger class, allowing additional utility methods to be included such as allowing
a log message to include a Throwable object. From an implementation
standpoint it would have been much easier to simply sub-class the Logger
class, but that class is implemented in such a way to make sub-classes
exceedingly difficult to create.
See Also: org.jamwiki.utils.WikiLogFormatter |
Method Summary | |
public void | config(String msg) Log a message at the
java.util.logging.Level.CONFIG level,
provided that the current log level is
java.util.logging.Level.CONFIG or greater. | public void | config(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.CONFIG level, provided that the current log level is
java.util.logging.Level.CONFIG or greater. | public void | fine(String msg) Log a message at the
java.util.logging.Level.FINE level,
provided that the current log level is
java.util.logging.Level.FINE or greater. | public void | fine(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.FINE level, provided that the current log level is
java.util.logging.Level.FINE or greater. | public void | finer(String msg) Log a message at the
java.util.logging.Level.FINER level,
provided that the current log level is
java.util.logging.Level.FINER or greater. | public void | finer(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.FINER level, provided that the current log level is
java.util.logging.Level.FINER or greater. | public void | finest(String msg) Log a message at the
java.util.logging.Level.FINEST level,
provided that the current log level is
java.util.logging.Level.FINEST or greater. | public void | finest(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.FINEST level, provided that the current log level is
java.util.logging.Level.FINEST or greater. | public static String | getDefaultLogFile() | public static String | getLogConfigFile() | public static WikiLogger | getLogger(String name) Retrieve a named WikiLogger object.
Parameters: name - The name of the log object to retrieve or create. | public void | info(String msg) Log a message at the
java.util.logging.Level.INFO level,
provided that the current log level is
java.util.logging.Level.INFO or greater. | public void | info(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.INFO level, provided that the current log level is
java.util.logging.Level.INFO or greater. | public void | severe(String msg) Log a message at the
java.util.logging.Level.SEVERE level,
provided that the current log level is
java.util.logging.Level.SEVERE or greater. | public void | severe(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.SEVERE level, provided that the current log level is
java.util.logging.Level.SEVERE or greater. | public void | warning(String msg) Log a message at the
java.util.logging.Level.WARNING level,
provided that the current log level is
java.util.logging.Level.WARNING or greater. | public void | warning(String msg, Throwable thrown) Log a message and an exception at the
java.util.logging.Level.WARNING level, provided that the current log level is
java.util.logging.Level.WARNING or greater. |
DEFAULT_LOG_FILENAME | final public static String DEFAULT_LOG_FILENAME(Code) | | |
LOG_PROPERTIES_FILENAME | final public static String LOG_PROPERTIES_FILENAME(Code) | | Log configuration property file.
|
getDefaultLogFile | public static String getDefaultLogFile()(Code) | | |
getLogConfigFile | public static String getLogConfigFile()(Code) | | |
getLogger | public static WikiLogger getLogger(String name)(Code) | | Retrieve a named WikiLogger object.
Parameters: name - The name of the log object to retrieve or create. A logger instance for the given name. |
|
|