You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Gonzalo Vasquez <gv...@altiuz.cl> on 2012/05/29 00:27:51 UTC

Configuring Logging

Can anyone provide me a link to a tutorial or similar on configuring JackRabbits logging facilites?

I'd like to log all "CRUD" like operations to the repository.

We are using the "jackrabbit-jca-2.4.1.rar" version, under JBoss, but will soon will try it under IBM WAS.-


Thanks!


Gonzalo Vásquez Sáez
Gerente Investigación y Desarrollo (R&D)
Altiuz Soluciones Tecnológicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes
(56-2) 335 2461
gvasquez@altiuz.cl
http://www.altiuz.cl
 




Re: Configuring Logging

Posted by Gonzalo Vasquez <gv...@altiuz.cl>.
Thanks! I've seem to have properly enabled logging using the default shipped implementation (logback), and I've detected that some Query* classes are the ones needed to be logged for some operations, but now I've seem to have a logback related configuration issue, any hints on log filtering based on the issuing class?

Gonzalo Vásquez Sáez
Gerente Investigación y Desarrollo (R&D)
Altiuz Soluciones Tecnológicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes
(56-2) 335 2461
gvasquez@altiuz.cl
http://www.altiuz.cl
 


El 29-05-2012, a las 23:24, Jukka Zitting escribió:

> Hi,
> 
> On Tue, May 29, 2012 at 12:27 AM, Gonzalo Vasquez <gv...@altiuz.cl> wrote:
>> Can anyone provide me a link to a tutorial or similar on configuring JackRabbits logging facilites?
> 
> Jackrabbit by default uses Logback for logging. See
> http://logback.qos.ch/ for documentation on how to configure it.
> 
> Since all Jackrabbit logging goes to Logback through SLF4J, you also
> switch to another logging library as described in
> http://www.slf4j.org/.
> 
>> I'd like to log all "CRUD" like operations to the repository.
> 
> In 2.4 the best place to log such things is probably the SessionState
> class that issues a DEBUG log of most JCR-level operations you're
> performing. Or you can look at enabling more detailed logging of
> specific SessionOperation classes in Jackrabbit. However, neither of
> these approaches is really a "CRUD" log like I assume you're
> expecting.
> 
> In the latest trunk (and the unstable 2.5.0 release that should be out
> later this week) you can also use the new "audit log" feature as
> described in https://issues.apache.org/jira/browse/JCR-3275. Or you
> can consider adding application-level logging for this purpose.
> 
> BR,
> 
> Jukka Zitting


Re: Configuring Logging

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Tue, May 29, 2012 at 12:27 AM, Gonzalo Vasquez <gv...@altiuz.cl> wrote:
> Can anyone provide me a link to a tutorial or similar on configuring JackRabbits logging facilites?

Jackrabbit by default uses Logback for logging. See
http://logback.qos.ch/ for documentation on how to configure it.

Since all Jackrabbit logging goes to Logback through SLF4J, you also
switch to another logging library as described in
http://www.slf4j.org/.

> I'd like to log all "CRUD" like operations to the repository.

In 2.4 the best place to log such things is probably the SessionState
class that issues a DEBUG log of most JCR-level operations you're
performing. Or you can look at enabling more detailed logging of
specific SessionOperation classes in Jackrabbit. However, neither of
these approaches is really a "CRUD" log like I assume you're
expecting.

In the latest trunk (and the unstable 2.5.0 release that should be out
later this week) you can also use the new "audit log" feature as
described in https://issues.apache.org/jira/browse/JCR-3275. Or you
can consider adding application-level logging for this purpose.

BR,

Jukka Zitting