Hello, Thank you for your answers. I gather this is not possible purely by configuring log4j2?
I could implement a ConfigurationListener which logs changed configurations to a regular logger but how would that re-act if the new configuration contains some invalid XML? The StatusLogger supplies some feedback in that cases. Regards, /David On 27 July 2015 at 19:13, 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 >
