开发者

Logging: Slf4j flush()? [closed]

开发者 https://www.devze.com 2023-01-31 17:32 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_开发百科
Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_开发百科

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

Improve this question

I 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

0

精彩评论

暂无评论...
验证码 换一张
取 消