You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Apache Wiki <wi...@apache.org> on 2006/03/22 20:24:56 UTC

[Jakarta-slide Wiki] Update of "Logging" by DEFord

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-slide Wiki" for change notification.

The following page has been changed by DEFord:
http://wiki.apache.org/jakarta-slide/Logging

New page:
Slide logging comes in three basic flavors:

 * Logging via the service/store using classes that extend [http://jakarta.apache.org/slide/javadoc/org/apache/slide/util/logger/Logger Logger]
 * Logging via the [http://jakarta.apache.org/slide/javadoc/org/apache/slide/webdav/WebdavServlet  WebdavServlet] which uses [http://logging.apache.org/log4j Log4J]
 * Logging via the Slide ["Event"] Listener [http://jakarta.apache.org/slide/javadoc/org/apache/slide/util/event/EventLogger EventLogger]


== Service/Store Logging ==
By defaut logging in the Services utilizes a custom logging system created for Slide. The default logger if it is not overridden in the ''domain.xml'' file's root slide element uses [http://jakarta.apache.org/slide/javadoc/org/apache/slide/util/logger/SimpleLogger SimpleLogger] which simply performs ''System.out.println'' commands to dump the log statements to the console.

The default logger can be overridden in the domain.xml file by specifying the logger to use (which must extend "Logger") like this:

{{{
<slide logger="log4j.Log4jLogger" logger-level="7">
}}}

As indicated in the above example the ''logger-level'' can also me manually set here. It's default value is ''6''.

== WebdavServlet Logging ==
The WebdavServlet uses the Log4J framework for logging information and will look for a ''log4j.properties'' file in the classpath of the WAR.

== Event Logging ==
Event logging uses the same logging system as the Service/Store logging but must be enabled in the ''<events>'' section of the ''domain.xml''. Like this
{{{
    <events>

        <event classname="org.apache.slide.webdav.event.WebdavEvent" enable="true" />
        <event classname="org.apache.slide.event.ContentEvent" enable="true" />

        <listener classname="org.apache.slide.util.event.EventLogger" />

    </events>
}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org