This post originated from an RSS feed registered with PHP Buzz
by Andrew Johnstone.
Original Post: PHP apache_note, Graphite & Logster for logging
Feed Title: Development, Analysis And Research
Feed URL: http://www.ajohnstone.com/feed/atom/
Feed Description: by Andrew Johnstone
A nice tip for logging data against apache logs within requests. Apache_note is a wrapper for Apache’s table_get and table_set. It edits the table of notes that exists during a request. The table’s purpose is to allow Apache modules to communicate. if (function_exists('apache_note')) { if (isset($_SESSION) && !empty($_SESSION)) { apache_note('session_id', session_id()); apache_note('users_id', isset($_SESSION['users_id'])? $_SESSION['users_id'] : [...]