 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Tony Bibbs' Blog: Cutting Use of Zend_Log in Half
by Chris Cornutt May 30, 2008 @ 15:24:20
Tony Bibbs has posted a mini-case study about how, at his work, they cut their use of the Zend_Log component of the Zend Framework in half:
As part of the framework we use at work, we borrow what we feel are the best components out there and logging is a key part of that. Logging should be simple to setup, easy to use and should minimize work on the developer. After all, you are going to do a lot of logging, right?
He shows how, with a few changes to how they log (creation of a custom logger), it reduces the number of calls to load a Zend_Registry object each time something needs to be recorded. His code is included in the post along with examples of it in action.
voice your opinion now!
zendlog logging zendframework component zendregistry custom log
Dave Marshall's Blog: Log memory usage using declare and ticks in PHP
by Chris Cornutt May 16, 2008 @ 12:05:37
Posted to his blog, Dave Marshall has a tip that uses declare and a trick or two to check out the memory usage of your scripts.
As far as I know, there isn't any memory footprint profiling in Xdebug, I think there was at some point but they removed it because it was a little flaky. I like to monitor the memory usage within my scripts, and I've found this simple snippet can help.
The script defines a log_memory function that pushes the memory and time information into a session value. The register_tick_function method is used to add log_memory to the handler and its called over and over from inside his for loop.
voice your opinion now!
log memory usage ticks registertickfunction method session
Matthew Turland's Blog: Log Analysis and PHP
by Chris Cornutt September 03, 2007 @ 21:41:28
In a new post, Matthew Turland looks at one thing that he feels is missing from a lot of the PHP functionality currently available in the community today - log analysis features.
Log analysis is a fairly common task in the field of web development, most often analysis of web server traffic logs or what Wikipedia refers to as web analytics. PHP has no officially supported extensions designed specifically for log analysis. There are no related extensions in PECL. The only remotely related extension in PEAR is PEAR_Log, which for generating logs rather than parsing or analyzing them. In short, there is no common solution here.
He looks at the options that developers do have - make their own solution or go with a third party option. He believes, though, that a PECL extension would be more the way to go, integrating with PHP more closely and allow for easier parsing and manipulating of the data in their own log files.
voice your opinion now!
log analyze pecl extension thirdparty log analyze pecl extension thirdparty
|
Community Events
Don't see your event here? Let us know!
|