katzgrau/KLogger — pull request #6 by webbird (2011-10-24 10:42:11+00:00)
Title: Some improvements

Hi,

I really like your class, but anyway, I've made some additions you may like to pull. :)

* added optional $args param that is dumped to the log to allow easy var dumps
* log line includes calling class, function name, filename, and code line

Example log line:

2011-10-20 18:50:50 - DEBUG --> [addFile()] language file does not exist: [ I18n.php:169 ]

Example with $args:

2011-10-20 18:51:53 - DEBUG --> [init()] language files to search for: [ I18n.php:108 ]
Array
(
[0] => DE
[1] => EN
)