News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroeder:
The cost of logging
July 24, 2013 @ 11:34:09

Kevin Schroeder has a new post to his site looking at the cost of logging in web applications. It's not so much about the theory behind what to log and when to log as it is the actual performance hit various kinds of logging take on your app.

So, I was having a discussion with a person I respect about logging and they noted that often logging poses a prohibitive cost from a performance perspective. This seemed a little odd to me and so I decided to run a quick series of benchmarks on my own system.

His tests ran through the types of logging available to PHP developers (like "debug", "notice" or "info") and wrote out the same message to a file ten thousand times each. He just did a simple microtime-based benchmark and graphed out the overall time it took. The differences between the tops of the bars is the time it took for that specific level of logging. He dropped it down to a more realistic level and notes that it only took "1/1000ths of a second per request."

0 comments voice your opinion now!
cost logging benchmark overhead zendframework

Link: http://www.eschrade.com/page/the-cost-of-logging

blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Optimise Your Zend_Feed Aggregators With HTTP Conditional GET Support

Padraic Brady's Blog: Writing A Simple Twitter Client Using the PHP Zend Framework's OAuth Library

Padraic Brady's Blog: The PHPSpec Zend Framework App Testing Manifesto: ZF Integration

O\'Reilly: Digg PHP\'s Scalability and Performance

Jani Hartikainen's Blog: Optimizing Zend Framework and Doctrine applications


Community Events





Don't see your event here?
Let us know!


community api introduction framework release symfony podcast interview tips language series development zendserver laravel deployment list conference threedevsandamaybe bugfix code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework