Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM2011 plugins and log4net remotingAppender (tcp sink)

$
0
0
I'm running into a problem using log4net in my CRM2011 plugins. Logging works as expected using a RollingFileAppender, so I know that the plugin is using the log4net library correctly. However, the RemotingAppender doesn't work. I'm using a tcp sink and the log4net Remote Logging Windows Service which listens on a tcp port for log messages (log4netremotelogging (dot) codeplex (dot) com).

I created a console application to test the remoteAppender and it works, so I don't feel that the configuration is off.

Turning on log4net's internal debug logging shows nothing happening when log4net is configured with the remoting Appender. It's as if the plugin process doesn't have sufficient rights to push data over tcp, but that's just a guess.

I need to use the remotingAppender because we potentially have more than one process using a single log4net configuration, which causes file sharing problems when using a FileAppender or RollingFileAppender.

I have looked at the CRM 2011 Appender for log4net (crm2011appender (dot) codeplex (dot) com) but it states that it "currently has issues when used inside of plugins."

We are hosting CRM 2011 ourselves as an internet facing deployment using ADFS and Single Sign On / Secure Token.



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>