473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

log4net questions

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

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 9 '05 #1
3 2191
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

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

T
Nov 10 '05 #2
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.

".neter" <gw*****@poczta.onet.pl> wrote in message
news:dk**********@news.onet.pl...
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 ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure
Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----

T


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 10 '05 #3
Take a look here:

http://www.codeproject.com/csharp/nspring.asp

"cwineman" <me@home.com> wrote in message
news:11**************@spool6-east.superfeed.net...
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.

".neter" <gw*****@poczta.onet.pl> wrote in message
news:dk**********@news.onet.pl...
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 ----== Posted via Newsfeeds.Com -
Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----

T


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----

Nov 11 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: SK | last post by:
Hi, I am using log4net in my c# application.Want to know how to customize the log output format. I know that it can be done using LayoutSkeleton class,but dont know what other parameters to be...
0
by: anonieko | last post by:
Add a reference to log4net.dll 1: In the APP.CONFIG write the following: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="log4net"...
0
by: Joneleth | last post by:
Hi, anyone can help with log4net? i'm not sure i understand log4net object model properly... i'm trying to configure log4net programmatically, in order to assign different custom appenders to...
3
by: cwineman | last post by:
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...
2
by: Vikram | last post by:
I am using log4net in a vb.net console application. But its not working. I have added congif setting in app.config file also No error is generated but app. does not write to log file. ...
6
by: Mr Flibble | last post by:
Hi all, I've decided to use log4net for my logging/tracing. In the example on the site it shows using main() to setup the root logger and then using the LogManager within your classes to...
0
by: Marc Scheuner | last post by:
Folks, I'd really like to use log4net for our error logging, but I'm having two problems: 1) For certain cases, I'd like to log error and messages to text files. I tried both the regular...
2
by: Marc Scheuner | last post by:
Folks, I'd really like to use log4net for our error logging, but I'm having two problems: 1) For certain cases, I'd like to log error and messages to text files. I tried both the regular...
2
by: forest demon | last post by:
I need to be able to create an appender to direct output to a MessageBox. The API does not have a MessageBox appender like nLog does. What would be the easiest way to do this. The examples...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.