| java.lang.Object org.jasig.portal.services.LogService
LogService | final public class LogService (Code) | | As of uPortal 2.4, use Apache Commons Logging directly instead of using this
LogService. This LogService is retained here for backwards compatibility,
and presumably will disappear in a future release.
The LogService is a service offered by the uPortal framework whereby messages
can be logged. Each uPortal deployment can customize exactly where how and
how much they want logged. As of uPortal 2.4, this is accomplished by this class
delegating all logging to Apache Commons Logging. The expected typical (and
default) local logging configuration is to use the Logger.properties file to configure
Log4J as the underlying logging implementation, to a file on disk. However, the
options are endless under Log4J: you can configure it to log as XML, to log to a tree
of files depending upon where the logging message is coming from and at what
logging level, to send log messages over the network to a Chainsaw instance listening to
your uPortal... Furthermore, you don't even have to use Log4J: Commons Logging supports
JDK1.4 logging as well as the ability for you to plug in a custom logging implementation if
you really want to.
author: Ken Weiner, Bernie Durfee, Vikrant Joshi, Zed A. Shaw, andrew.petro@yale.edu version: $Revision: 35330 $ $Date: 2005-01-17 11:43:50 -0700 (Mon, 17 Jan 2005) $ |
Field Summary | |
final public static Priority | DEBUG | final public static Priority | ERROR | final public static Priority | INFO | final public static Priority | NONE | final public static Priority | SEVERE | final public static Priority | WARN |
Method Summary | |
final public static LogService | instance() | final public static void | log(Priority pLogLevel, String sMessage) | final public static void | log(Priority pLogLevel, Throwable ex) Log the given throwable at the given priority. | final public static void | log(Priority pLogLevel, String sMessage, Throwable ex) | final public static void | log(String sMessage) |
DEBUG | final public static Priority DEBUG(Code) | | |
ERROR | final public static Priority ERROR(Code) | | |
INFO | final public static Priority INFO(Code) | | |
NONE | final public static Priority NONE(Code) | | |
SEVERE | final public static Priority SEVERE(Code) | | |
WARN | final public static Priority WARN(Code) | | |
LogService | protected LogService()(Code) | | |
log | final public static void log(Priority pLogLevel, String sMessage)(Code) | | |
log | final public static void log(Priority pLogLevel, Throwable ex)(Code) | | Log the given throwable at the given priority.
Parameters: pLogLevel - - logging level Parameters: ex - - throwable to be logged |
|
|