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

Ralph Goers (JIRA) noreply-jira at qos.ch
Sat Dec 19 17:19:33 CET 2009


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

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

Rather than write an asynchronous version of every appender it makes more sense to write a single AsynchAppender that can be configured with the appender to be made asynchronous. I have done that but haven't completely tested it. Also, Ceki has mentioned that he likes to avoid creating threads as they create problems. I know of no way to implement the asynchronous behavior without one.

As for the attached code, I'm not sure why it doesn't implement the start and stop methods. Rather than requiring a synchronized block in subAppend, starting the threat in the start method would work better. Also, without the stop method there is no way to shutdown the thread so bad things will happen if the application is redeployed.

> 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: 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