jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Pfister (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1441) Support workspace event listeners that will be created/registered on initialization time
Date Tue, 04 Mar 2008 17:05:40 GMT

     [ https://issues.apache.org/jira/browse/JCR-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dominique Pfister resolved JCR-1441.
------------------------------------

    Resolution: Fixed

Added section as described, as well as a workspace audit logger that can be activated as follows
inside a <workspace> section:

  <EventListener class="org.apache.jackrabbit.core.WorkspaceAuditLogger"/>

This will log all events in the format:

  [counter] type path (userid@workspace)

to the "audit" logger. In order to have this in a separate file, add the following to log4j.xml:

    <appender name="audit" class="org.apache.log4j.FileAppender">
        <param name="File" value="logs/audit.log"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} %m%n"/>
        </layout>
    </appender>

    <logger name="audit" additivity="false">
        <level value="info"/>
        <appender-ref ref="audit"/>
    </logger>

Fixed in revision 633546.

> Support workspace event listeners that will be created/registered on initialization time
> ----------------------------------------------------------------------------------------
>
>                 Key: JCR-1441
>                 URL: https://issues.apache.org/jira/browse/JCR-1441
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: core 1.4.1
>            Reporter: Dominique Pfister
>            Assignee: Dominique Pfister
>
> Add an <EventListener> section in workspace.xml (or the <Workspace> section
of repository.xml), containing custom javax.jcr.observation.EventListener implementations
that will be created and registered when the workspace is initialized.
> The DTD for this section might look as follows:
> <!ELEMENT EventListener (param*)>
> <!ATTLIST EventListener class        CDATA #REQUIRED
>                         eventTypes   CDATA #IMPLIED
>                         absPath      CDATA #IMPLIED
>                         isDeep       CDATA #IMPLIED
>                         uuid         CDATA #IMPLIED
>                         nodeTypeName CDATA #IMPLIED
>                         noLocal      CDATA #IMPLIED>
> This would allow creating an audit logger that will log all write operations on a workspace.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message