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

What is worth logging?

I'm working on conventions for a large e-commerce application. Sure, I
can tell the R&D to "log everything" but it's unlikely to be done.
Waiting to hear from your experience - what info proves worth of
logging on a regular basis?

Thanks,
J.

Aug 19 '06 #1
2 1070
Hi Jimmy,

Errors, for one thing. Other information depends on the requirements of the app. If the app is stateful, I'd log information that
sums up the state of the app at various times, like the end of each day, so that you won't be too far off from any problems, if they
should occur, related to corrupted or invalid state. In this case auditing can be extremely helpful as well if you provide
restricted services to end users and administrative users that require authentication and authorization. You might want to log hits
and other statistical information. Output from performance counters could be logged as well.

When deciding what needs to be logged, analyze each possibility and determine whether the requirements of the app indicate a need
for logging. The same requirements that determine the need for logging usually determine the need for notifications as well, such
as an e-mail that is automatically sent to an address that is monitored by the web master in the case of a critical error.

Microsoft provides two Application Blocks; Exception Handling Block and a Logging & Instrumentation Block that are both configurable
at runtime and provide applications whether best-practice implementations for error handling and logging, respectively:

http://msdn.microsoft.com/practices/...ype/appblocks/

HTH

--
Dave Sexton

"Jimmy" <am******@gmail.comwrote in message news:11*********************@m79g2000cwm.googlegro ups.com...
I'm working on conventions for a large e-commerce application. Sure, I
can tell the R&D to "log everything" but it's unlikely to be done.
Waiting to hear from your experience - what info proves worth of
logging on a regular basis?

Thanks,
J.

Aug 19 '06 #2
Just to add to Vadym's post (which I totaly agree with). Make sure that the
logging levels can be set in the field by the customer (Don't make it hard
for them to change this setting). And if the product is a server, you'll
want to allow on-the-fly configuration (don't make them shut it down and
restart).

Kim Greenlee

--
digipede - Many legs make light work.
Grid computing for the real world.
http://www.digipede.net
http://krgreenlee.blogspot.net

Aug 21 '06 #3

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

Similar topics

0
by: Neil Benn | last post by:
Hello, I'm running a test and having issues with logging, if I call logging.shutdown() and then want to start the logging going again then I get a problem as if I call shutdown, I can't get the...
2
by: Tor Erik Sønvisen | last post by:
Hi Have the following code: import logging logging.basicConfig(level = logging.DEBUG, format = ' %(message)s', filename = 'rfs.log', filemode = 'w')
0
by: Karuppasamy | last post by:
H I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net I installed everything as per the Instructions given in the 'Development Using the Logging Block' ...
19
by: Eric Lilja | last post by:
Hello, I have a class that I want to be able to output detailed information about what it's doing either to a file or to the screen. What I first tried was adding a std::ostream-reference member...
3
by: Chris Smith | last post by:
Hola, pythonisas: The documentation for the logging module is good, but a bit obscure. In particular, there seems to be a lot of action at a distance. The fact that getLogger() can actually be a...
4
by: MrBlueSky | last post by:
Hello! I've just finished working on my first Python app (a Tkinter-based program that displays the content of our application log files in graphical format). It was a great experience that's...
5
by: Ritesh Raj Sarraf | last post by:
import os, sys, logging logger = logging.getLogger("my_app") conerr = logging.StreamHandler(sys.stderr) conerr.setLevel(logging.DEBUG) conerr_formatter = logging.Formatter('%(levelname)s...
0
by: rajesh.hanchate | last post by:
Please help me in resolving this issue. I am using EnterpriseLibrary 2.0 Exception and logging block for logging exceptions to event log. It works fine for sometime. After some time it stops...
2
by: Matthew Wilson | last post by:
In this code, I tried to kill my thread object by setting a variable on it to False. Inside the run method of my thread object, it checks a different variable. I've already rewritten this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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,...
0
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...
0
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...

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.