[logback-user] SocketAppender

Ceki Gulcu ceki at qos.ch
Thu Mar 26 17:49:50 CET 2009


You might find the following thread on the log4j-user mailing useful.


Greg Flex wrote:
> Sorry for the empty message I just sent. I pressed the wrong button by 
> mistake....
> I have the following SocketAppender that uses the XMLLayout.
>  <appender name="SOCKET" 
> class="ch.qos.logback.classic.net.SocketAppender"> 
>     <RemoteHost>localhost</RemoteHost>
>     <Port>7777</Port>
>     <ReconnectionDelay>10000</ReconnectionDelay>
>     <IncludeCallerData>true</IncludeCallerData>
>     <layout class="ch.qos.logback.classic.log4j.XMLLayout">
>       <LocationInfo>true</LocationInfo>
>       <properties>true</properties>
>     </layout> 
>   </appender>
> I was wondering if it is possible to make a logback client that uses the 
> above SocketAppender
> talk to a Log4j server.
> I tried this but the server throws an unknown exception when connection 
> is made...
> Can SocketAppender and log4j.XMLLayout be combined like in the example 
> above?

Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.

More information about the Logback-user mailing list