log4net questions interop and custom output

C

cwineman

Hello,

My group is considering using the log4net framework for logging. I'm hoping
someone here can give me some feedback on some questions.

Our application will need to log messages from both managed and unmanaged
code. To log messages from the unmanaged side, can we still use log4net?
Should we use log4xx instead? How messy would it be to simultaneously use
two different implemenations (log4net and log4xx) of what is really the same
logging framework? Should we consider using a different logging framework
altogether, say EntLib?

I also have a question about customizing output. The faq says that you can
customize by implementing an ILayout interface. What we want to do is log
both application diagnositic information as well as domain specific
information. For example, we are working on a physical access application.
When someone uses a prox card and walks through a door, you might want to
log the user id, card id, timestamp, door, etc. Not class names or calling
threads. Is it easy (or even possible) to define the different types
information that you want log? Then, based on user preferences, can you
control which of those types show up in a logging file?

Thanks,

-cwineman
 
W

William Stacey [MVP]

For this specific and critical need, I might just use sprocs in front of the
DB and call the sprocs via the various methods for both managed and
unmanaged.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top