StatusLogger was not meant for that kind of flexibility as it is for 
diagnostics of the logging system.  

While in theory it would be possible to create a StatusListener that binds to 
an Appender I don’t believe it would be simple. Plus, it couldn’t use Plugins 
to be configured.  Frankly, it would probably be easier to build a specific 
StatusListener for a specific Appender that uses the Appender’s Manager.

Ralph

> On Jul 27, 2015, at 10:13 AM, Gary Gregory <[email protected]> wrote:
> 
> Ralph,
> 
> I fine point I missed, thank you.
> 
> Would it be too weird to provide a bridge StatusListener that forwards to
> an Appender or to all of Log4j?
> 
> Gary
> 
> On Mon, Jul 27, 2015 at 10:09 AM, Ralph Goers <[email protected]>
> wrote:
> 
>> Gary,
>> 
>> This is the StatusLogger. Messages are via StatusListeners. The only one
>> we provide is the StatusConsoleListener.  If a user wants to do something
>> else they need to implement their own StatusListener and register it.
>> 
>> Ralph
>> 
>>> On Jul 27, 2015, at 9:52 AM, Gary Gregory <[email protected]>
>> wrote:
>>> 
>>> You need to configure log4j: Please see
>>> https://logging.apache.org/log4j/2.x/manual/configuration.html
>>> 
>>> Gary
>>> 
>>> On Mon, Jul 27, 2015 at 3:17 AM, David KOCH <[email protected]> wrote:
>>> 
>>>> Hello,
>>>> 
>>>> How do I configure log4j2 to send StatusLogger output to a Syslog
>> appender?
>>>> 
>>>> Our application runs on several instances and logs to a remote instance
>> for
>>>> centralised logging, however status logging only appears in the logs on
>>>> each instance.
>>>> 
>>>> Thank you,
>>>> 
>>>> /David
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> E-Mail: [email protected] | [email protected]
>>> Java Persistence with Hibernate, Second Edition
>>> <http://www.manning.com/bauer3/>
>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>> Spring Batch in Action <http://www.manning.com/templier/>
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
>> 
> 
> 
> -- 
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to