Re: Logging from a .dll
- From: John Bailo <jabailo@xxxxxxxxxx>
- Date: Fri, 03 Feb 2006 14:52:54 -0800
I see.
But my logging method (which just uses the Trace class) is in the .exe
So how would I write log entry from the .dll using a method in the .exe?
Peter Rilling wrote:
I mean the assembly the contains the log component. For example, whether it be log4net, or System.Diagnostics, or something else. I was just being generic and not assuming that you were using the framework classes for your logging..
"John Bailo" <jabailo@xxxxxxxxxx> wrote in message news:43E3CEF0.7040707@xxxxxxxxxxxxx
Peter Rilling wrote:
The same way you did it in the EXE, just make sure to be referencing the correct log assembly and namespace(s) in your DLL.
What do you mean by "log assembly" ?
"John Bailo" <jabailo@xxxxxxxxxx> wrote in message news:b8GdneHJBLiGJ37eRVn-sA@xxxxxxxxxxxxxxxx
I have a .exe that calls a .dll
I want to write log messages at various parts of the process in the .exe and .dll to a common trace/log file.
I set up a method in the .exe to write to the trace file, but to append basic information like DateTime.Now to each log entry.
How can I get my .dll to write to that same log file?
- Follow-Ups:
- Re: Logging from a .dll
- From: Peter Rilling
- Re: Logging from a .dll
- References:
- Logging from a .dll
- From: John Bailo
- Re: Logging from a .dll
- From: Peter Rilling
- Re: Logging from a .dll
- From: John Bailo
- Re: Logging from a .dll
- From: Peter Rilling
- Logging from a .dll
- Prev by Date: Re: Search Engine Optimization
- Next by Date: Re: Logging from a .dll
- Previous by thread: Re: Logging from a .dll
- Next by thread: Re: Logging from a .dll
- Index(es):
Relevant Pages
|