You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Santhosh Kombiyil <ko...@corp.earthlink.net> on 2005/09/03 01:34:59 UTC

RemotingAppender Example

I'm trying to setup RemotingAppender in a config file, and trying to log from multiple AppDomains. But i could not get this to work. Only the primary AppDomains logging goes through to the Sink setup using RemoteLoggingServerPlugin. I'm using LogFileAppender in the sink to log the buffered events.

Is there anything special which i need to take care of when doing this?

Client's config,

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="RemotingAppender" type="log4net.Appender.RemotingAppender" >
<sink value="tcp://localhost:8085/LoggingSink" />
<lossy value="false" />
<bufferSize value="95" />
<onlyFixPartialEventData value="true" />
</appender>
<root><level value="ALL" />
<appender-ref ref="RemotingAppender" /></root>
</log4net>
</configuration>

Thanks,
Santhosh