[logback-dev] [JIRA] Commented: (LBCLASSIC-176) Asynchronous File appender

Ralph Goers (JIRA) noreply-jira at qos.ch
Mon Dec 21 23:48:33 CET 2009


    [ http://jira.qos.ch/browse/LBCLASSIC-176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11473#action_11473 ] 

Ralph Goers commented on LBCLASSIC-176:
---------------------------------------

Don't worry, your English is good enough that I can understand you.

I thought about pooling a bit more and I'm not sure it wouldn't introduce more problems than it is worth. 

Calling getCallerThrowable in prepareForDeferredProcessing doesn't work since there is nowhere in the event to store the returned Throwable.

Interestingly, the changes I've made on my fork could make this simpler. That version of Logback uses Messages. A Message is an interface that has 3 methods - getFormattedMessage(), getMessageFormat() and getParameters(). getFormattedMessage() is required to always return the same result regardless of whether the Message was serialized and deserialized or is passed to a different thread. So with the version of Logback in my fork this problem doesn't exist.

Since continuing to send patches is tedious any further work I do is going to end up in my fork at git://github.com/rgoers/logback.git.

> Asynchronous File appender
> --------------------------
>
>                 Key: LBCLASSIC-176
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-176
>             Project: logback-classic
>          Issue Type: New Feature
>          Components: appender
>            Reporter: Konstantin Alexandrov
>            Assignee: Logback dev list
>         Attachments: asynch.zip, AsynchRollingFileAppender.java, AsynchRollingFileAppender.java
>
>
> I implement asynch rolling file appender for my application, the reason is to decrease logging time in time critical part of application.
> This logger save up to 2 time logging time and decrease total IO concurrency. If you found this appender usable, then please include
> to distribution.
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list