7 Aug 13:18
Logging from two dlls interop
From: Alaks <leromantique6 <at> hotmail.com>
Subject: Logging from two dlls interop
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-08-07 11:20:34 GMT
Subject: Logging from two dlls interop
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-08-07 11:20:34 GMT
Hye.
I wanted to trace my functions by logging some informations. So i developped
two dlls (.net interop) wich use log4net for logging.
when i execute one of the dlls from asp page, logging is working fine. But
when i wanted to use both in the same page with "createObject("Dll1.object)
and createObject("Dll2.object") i encounter problems.
The problem is a little bitte weard, all functions with the same name in
these two dlls , the logs is automatically logged in the last dll
instantied.
Example(c#)
Dll1 :
public void foo(){
log.Info("Hello it's me");
}
Dll2 :
public void foo(){
log.info("Hello it's not me!");
}
ASP page :
<%
set ob = server.createObject("Dll1.object");
set ob1 = server.createObject("Dll2.object");
ob.foo()
(Continue reading)
RSS Feed