Web Tool Bag  
Home · Articles · Downloads · Discussion Forum · Web Links · News CategoriesFebruary 05 2012 09:53:07
Navigation
Home
Articles
Downloads
Discussion Forum
Web Links
News Categories
Search
Users Online
Guests Online: 4
No Members Online

Registered Members: 625
Newest Member: nownigcheencex43
Forum Threads
Newest Threads
reverse mortgage
Science channels in ...
How can I see the fu...
Order Flagyl Without...
X-Rumer 7.0 - best s...
Hottest Threads
Installation [11]
Hermoine nude [6]
Captcha picture d... [6]
Integrate with Vi... [5]
Any questions and... [5]
Trusted web hosting

Coupon Code
WEBTOOLBAG
Latest Articles
jQuery Accordion - m...
Few Guidelines for W...
Move OST to PST to U...
Microsoft OST vs. Mi...
Tips for Specialized...
How to Debug Using a Log
Logging is the practice of writing a system so that it produces a sequence of informative records,
called a log. Printlining is just producing a simple, usually temporary, log. Absolute beginners
must understand and use logs because their knowledge of the programming is limited; system architects
must understand and use logs because of the complexity of the system. The amount of information
that is provided by the log should be configurable, ideally while the program is running.

In general, logs offer three basic advantages:

• Logs can provide useful information about bugs that are hard to reproduce (such as those that
occur in the production environment but that cannot be reproduced in the test environment).

• Logs can provide statistics and data relevant to performance, such as the time passing between
statements.

• When configurable, logs allow general information to be captured in order to debug unanticipated
specific problems without having to modify and/or redeploy the code just to deal with
those specific problems.

The amount to output into the log is always a compromise between information and brevity. Too
much information makes the log expensive and produces scroll blindness, making it hard to find
the information you need. Too little information and it may not contain what you need. For this
reason, making what is output configurable is very useful. Typically, each record in the log will
identify its position in the source code, the thread that executed it if applicable, the precise time of
execution, and, commonly, an additional useful piece of information, such as the value of some
variable, the amount of free memory, the number of data objects, etc. These log statements are
Beginner sprinkled throughout the source code but are particularly at major functionality points and around
risky code. Each statement can be assigned a level and will only output a record if the system is
currently configured to output that level. You should design the log statements to address problems
that you anticipate. Anticipate the need to measure performance.
If you have a permanent log, printlining can now be done in terms of the log records, and some of
the debugging statements will probably be permanently added to the logging system.

by Robert L. Read

Posted by zdravko on July 12 2010 10:05:34 540 Reads · Print
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Member Poll
Which PHP framework do you preffer?

Symfony

Zend

PHPDevShell

PHP on TRAX

eZ Components

Fusebox

PhpOpenbiz

Prado

QPHP

Seagull

You must login to vote.
Shoutbox
You must login to post a message.

Vince
03/10/2011 18:17
Hi, How to remove Register from Login screen? I don't want them to register and have full access! if you leave register then they should not have any rights until the admin assigns them

webtoolz
26/09/2011 08:28
Please describe your problem with more details. Thank you.

bimmer98
22/11/2010 18:31
Help. There was a problem with the request; error regarding feedbackzdr form program

PHP Obfuscator
Copyright © 2012 - www.webtoolbag.com