473,761 Members | 9,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

log4net questions

Hello,

I posted this question in microsoft.publi c.dotnet.framew ork 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 2217
Try NLog, has implementation for both managed and unmanaged code
nlog.sourceforg e.net

RG
Hello,

I posted this question in microsoft.publi c.dotnet.framew ork 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.sourceforg e.net

RG
Hello,

I posted this question in microsoft.publi c.dotnet.framew ork 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.sourceforg e.net

RG
Hello,

I posted this question in microsoft.publi c.dotnet.framew ork 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
732
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 given in the log4net config file. Please help
0
1742
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" type="System.Configuration.IgnoreSectionHandler" /> </configSections>
0
466
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 some custom loggers (run-time) and (i think) i've been able to add new custom loggers to the root logger of the repository. i've also added one appender for each custom logger. this is the code snippet i wrote:
3
577
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 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
2
5153
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. app.config file: <?xml version="1.0" encoding="utf-8" ?>
6
8107
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 create more loggers (subloggers). This is nice since I can use just one configuration file to control the behaviour of all the loggers within my app. This is great if I'm using a project that contains all my classes but what happens if my class is in...
0
1077
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 FileAppender, as well as the RollingFileAppender, but both don't work exactly the way I'd like them to.
2
2097
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 FileAppender, as well as the RollingFileAppender, but both don't work exactly the way I'd like them to.
2
20038
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 supplied with the source are anything but helpful. Thanks for any input. -fd
0
9531
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.