[logback-dev] how to get appender-ref list via Joran

Cheenu cheenu321 at gmail.com
Tue Mar 3 17:10:03 CET 2009


Seems something simple enough.
But I can't figure out - any of you mind telling me?

Thanks

On Mar 2, 2009, at 2:00 PM, Cheenu wrote:

> I am trying to develop a new appender for Async logging - a non- 
> blocking appender similar to http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/AsyncAppender.html
>
> Config is like:
> 	<appender name="async" class="logback.AsyncAppender">
> 		<bufferSize>20</bufferSize>
> 		<appender-ref ref="stdout" />
> 		<appender-ref ref="file" />
> 	</appender>
>
> Question:
> How do I get list of appenders (the appender-ref's) in my code?
>
> Thanks
>



More information about the logback-dev mailing list