473,320 Members | 1,978 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,320 software developers and data experts.

Logger

Hi, all!

I need create log file in my project. Is there any standard way to do that,
or is there any good logger class you know?

Thanks a lot
Nov 17 '05 #1
7 3014
have a look at codeproject.org there are lots of samples.

"Aleksey" <al************@il.quest.com> schrieb im Newsbeitrag
news:uZ**************@tk2msftngp13.phx.gbl...
Hi, all!

I need create log file in my project. Is there any standard way to do that, or is there any good logger class you know?

Thanks a lot

Nov 17 '05 #2
"Aleksey" <al************@il.quest.com> wrote:
Hi, all!

I need create log file in my project. Is there any standard way to do that,
or is there any good logger class you know?


System.Diagnostics.Trace

?

Sergei
Nov 17 '05 #3
Aleksey wrote:
Hi, all!

I need create log file in my project. Is there any standard way to do that,
or is there any good logger class you know?

Thanks a lot


look at Log4Net:

http://logging.apache.org/log4net/

but despite it's extensibility it's pretty limited in the amount of
information you can log.
Nov 17 '05 #4
this is a useful code block from MS for logging:

http://msdn.microsoft.com/library/de...ml/logging.asp

Nov 17 '05 #5
I like DotNetLog from the Object Guy:
http://www.theobjectguy.com/dotnetlog/. It is a good balance of a low
learning curve, easy implementation, and enough functionality to get
the job done. The API makes sense, too. If you are going to use other
parts of the Enterprise Library from Microsoft, then you should look at
that framework. I have found it much more complex without any added
benefits (for my applications).

Nov 17 '05 #6
Hello
We create a singleton logger component and which writes to the log only once.
let me know if u are interested
"sd*****@cornercap.com" wrote:
I like DotNetLog from the Object Guy:
http://www.theobjectguy.com/dotnetlog/. It is a good balance of a low
learning curve, easy implementation, and enough functionality to get
the job done. The API makes sense, too. If you are going to use other
parts of the Enterprise Library from Microsoft, then you should look at
that framework. I have found it much more complex without any added
benefits (for my applications).

Nov 17 '05 #7
DB
Hi Al...,

If u are developing project based on .net then go for log4net.
http://logging.apache.org/log4net/
for jave ppl, its log4J
http://supportweb.cs.bham.ac.uk/docu...g4j/log4j.html

Regards,
DB
"Aleksey" <al************@il.quest.com> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
Hi, all!

I need create log file in my project. Is there any standard way to do
that,
or is there any good logger class you know?

Thanks a lot

Nov 17 '05 #8

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

Similar topics

0
by: Nermin Brgulja | last post by:
Hi, I am using jdk1.4 Logger with a FileHandler for logging in a web application, and have two questions regarding logging: The first question is: I've created an Logger and mapped it to an...
0
by: Laszlo | last post by:
Hi I need a GL::Logger wich implements Class::Singleton to be a singleton and Log::Log4perl to can log amy message into a file. Here is the module source:...
2
by: Robert | last post by:
Hi all I have been trying to set up a framework with logging implemented using the built in Python logging module. For better or worse, I have decided to base the logger names on the module...
1
by: rodsatt | last post by:
Hi, This is my first post, and I got questions about logging. When something happen within an object, and if I would like to log the event, what would be a good way to do it? 1. I make the...
10
by: Gary Jefferson | last post by:
Suppose I have 3 modules that belong to a project, 'A', 'A.a' and 'B', and each module has its own logger, created with: module1logger = logging.getLogger('project.A') and module2logger =...
5
by: CedricCicada | last post by:
Greetings! I want to write messages into the Windows event log. I found sevicemanager, but the source is always "Python Service", and I'd like to be a bit more descriptive. Poking around on...
4
by: garyjefferson123 | last post by:
Suppose I have some sort of context variable that I want to appear in log messages. E.g.: logger = logging.getLogger("somelogger") class SomeOp: def __init__(self, ctx): self.ctx = ctx def...
2
by: DwBear75 | last post by:
I am hoping to find some simple examples of how to create a logger instance using smtphandler. I don't want to create a separate ini file. I just want to sent the smtphost, from, to right in the...
1
by: nagk9 | last post by:
Hi , I am using log4j in my application. I have the problem with log4j.properties file . It will automatically appends another logger file from the current logger which i am using for the...
1
by: Matimus | last post by:
Yes but in the other hand :http://docs.python.org/library/logging.html#logger-objects That is part of the power of the logging module. If you ask for a logger of the same name in two different...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.