Friday, May 18, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: domains and log4net
Prev Next
You are not authorized to post a reply.

Author Messages
Graham Walsh

08/20/2008 12:38 PM  

Hi,

 

This is driving me CRAZY! :( I'm doing something I see others a trying to do (via google) however I simply cannot get it to work.

 

I have a GUI app that uses a rollingFileAppender (it also uses a RichTextBox appender but  for the moment, I just want the file appender to work ok). Anyways, I create my Domain and point everything to the "previousVersion" directory where all the dlls are located for the new Domain. I successfully call my methods in the new domain.

 

AppDomain newDomain = AppDomain.CreateDomain("NewDomain", null, "previousVersion", ".", false, null, null);

 

I make calls using this newDomain and everything works fine. I cannot however get the logger to log to the parent domains logfile. i.e. both domains should log to toto.log but they don't. The new domain logs nothing. I can't even get the new domain to log to a separate logfile, so I know I'm doing something dumb

 

I have tried adding

 

<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />

<lockingModel type="log4net.Appender.RichTextBoxAppender+MinimalLock" />

to my appenders but without any luck. I am sure I'm doing something really stupid here but I just can't see what.  the log4net config file is correctly locatedd in the new domains working directory and permissions are fine. Is there a way to debug log4net to see what I'm doing wrong?

 

thanks much for any help

G

 

 
You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > domains and log4net



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement