log4net questions

  • Thread starter Thread starter cwineman
  • Start date Start date
C

cwineman

Hello,

I posted this question in microsoft.public.dotnet.framework and didn't get
any responses. Maybe somebody here has some input. If anyone knows of a
better place to ask these questions, let me know.

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
 
Try NLog, has implementation for both managed and unmanaged code
nlog.sourceforge.net

RG
Hello,

I posted this question in microsoft.public.dotnet.framework and didn't get
any responses. Maybe somebody here has some input. If anyone knows of a
better place to ask these questions, let me know.

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
T
 
Thanks,

I've seen many similar logging projects. I'm leaning towards log4net or
EntLib because they seem to be the two frameworks with the largest
following, so I expect that they will have better support.
 
Back
Top