Created
October 19, 2011 09:00
-
-
Save m4rcsch/1297788 to your computer and use it in GitHub Desktop.
Revisions
-
m4rcsch renamed this gist
Oct 19, 2011 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
m4rcsch created this gist
Oct 19, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ /** * Inspect the message, and do a string conversion via print_r * * @author: 2011 weluse GmbH, Marc Schwering */ Logger::applyFilter('write', function ($self, $params, $chain){ $var = $params['message']; if(is_array($var) || is_object($var)){ $params['message'] = print_r($var,true); } return $chain->next($self, $params, $chain); });