Closing appenders

10 views
Skip to first unread message

Brenda

unread,
Nov 19, 2009, 10:10:39 AM11/19/09
to log5f
In some cases, appenders need to clean up, maybe removing listeners,
flushing buffers or closing file streams. The 'Appender' class has a
method for this and the 'Category' class has a method
'removeAllAppenders' that invokes the 'AppenderAttachable' class
method 'removeAllAppenders' which calls each appenders close method.

What I don't see if when the 'Category' method 'removeAllAppenders' is
ever called. Is the intent that the process, or application, that
gets the 'Logger' class, which extends from 'Category', call the
'removeAllAppenders' method?

example:
private var _logger:Logger LoggerManager.getLogger(this);
o
[logger messages...]
o
_logger.removeAllAppenders();

Thanks again,
Brenda

Max Rozdobudko

unread,
Nov 23, 2009, 9:43:50 AM11/23/09
to lo...@googlegroups.com
Hi! Despite the fact that the method "removeAllAppenders" is public API, this method for internal using. Now it is not used, but in the future this method may need, for example for reconfiguration of the loggers.
Reply all
Reply to author
Forward
0 new messages