[ 
http://jira.qos.ch/browse/LBCORE-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10734#action_10734
 ] 

Bruno Navert commented on LBCORE-57:
------------------------------------

One key use-case for this: trigger a manual .flush() when an error (stack 
trace) occurs in the application. This makes sure that the log file is always 
up to date in that situation, otherwise it's entirely possible that part of the 
stack trace is still held in the in-memory buffer, and developers looking at 
the log file will not see it.

> FlushableAppender
> -----------------
>
>                 Key: LBCORE-57
>                 URL: http://jira.qos.ch/browse/LBCORE-57
>             Project: logback-core
>          Issue Type: Improvement
>          Components: Appender
>    Affects Versions: 0.9.9
>            Reporter: Bruno Navert
>            Assignee: Logback dev list
>            Priority: Minor
>         Attachments: DirectoryCreateRollingFileAppender.java, 
> FlushableAppender.java
>
>
> Create a FlushableAppender interface for appenders that can be manually 
> flushed (only relevant if bufferingIO is enabled)
> Interface can simply extend Appender and java.io.Flushable

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

        
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to