Logging: Slf4j flush()? [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionI need to flush all slf4j loggers, is it possible to do so without using implementation-specific code (like in How do you flush a buffered log4j FileAppender? ? (I use slf4j-log4j12 ver. 1.5.11)
Re-formulated: How can I flush appenders in slf4j API?
Actually I think there's no way, see my RFE at http://bugzilla.slf4j.org/show_bug.cgi?id=211 . But rather asking for the case I missed something.
If I opt to use Log4j API, I could try either of two solutions from here:
How do you flush a buffered log4j FileAppender?Thanks, Ondra
精彩评论