[logback-user] Logging to database

Aswani sriaswani at gmail.com
Mon Jan 12 17:12:50 CET 2009

Hi everyone,

In our application we log all events of all users to one log file. As we
have many users, suppprt has become difficult.

So we are exploring better ways.

we have two options:

1) Seperating logging to different files, like one file per user.
    - There is a SiftingAppender in logback that serves this purpose.

2) Logging to database. (Our team is interested in this option)
    -  Not one event at a time. Buffering all events of one client request
and write all those buffered messages as one single string to Database at
the end of the request. So the buffer should be thread local, or one buffer
per user.
I am just wondering is this possible with SiftingAppender? 
I saw CyclicBufferAppender in logback apidocs. But there is no documentation
for that. If this appender is not for that purpose, Is there any appender
that suits my requirement?

So, I am thinking, instead of a FileAppender in the SiftingAppender, can we
have any other appender that buffers all logging events of one client

Am I thinking in the right direction?...

Please help me in this regard...
Thanks in advance!!!


View this message in context: http://www.nabble.com/Logging-to-database-tp21417555p21417555.html
Sent from the Logback User mailing list archive at Nabble.com.

More information about the Logback-user mailing list