Hi, The problem is that the GThreads are running in a sandbox AppDomain inside the Executor. You can communicate between AppDomains by remoting and this is the way we log from the sandbox into the executor's log but for this you would need a way to get the Executor's AppDomain.
You could modify AppDomainExecutor:ExecuteThread to pass the AppDomain to your GThread. I'm not sure about adding something like this to the framework though as the GThread could run custom code in the Executor's AppDomain. I've been pondering this for some time and the best I can think of would be to expose a Logger property on the GThread and set it to the sandbox AppDomain's Logger before starting the thread. This seems fairly safe as the AppDomain is not given to the GThread and by using this logger the GThread could write into the Executor's log. I think this would be a useful feature to have... Regards, Tibor > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:alchemi- > [EMAIL PROTECTED] On Behalf Of Atali DAOUD > Sent: Thursday, July 06, 2006 9:50 AM > To: [email protected] > Subject: [Alchemi-developers] Log4net problem > > Hello, > > My classes loaded in the executor use log4net but any log appears in the > logfile. > how to proceed for enabling log from my classes to the > alchemi-executor.log ? > Does someone can help me, please ? > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Alchemi-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/alchemi-developers Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alchemi-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alchemi-developers
