Recommend this page to a friend! |
Classes of Stefan Kientzler | XLogger PHP PSR Logger | readme.md | Download |
|
DownloadXLogger - PSR3 compliant Logging to Browser Console, Text- or XML-FileThis package provides PSR-3 compliant Loggers for Output to - Browser Console via FirePHP - Browser Console via Chrome Logger - Plain Text (log, txt, csv) - XML File (can be transformed to HTML with included XSL) For debugging in particular, it is often very time-saving if the logging output goes directly to the browser console. Since the loggers comply with the PSR-3 specification, they can be used for existing code and there is the possibility to configure the most suitable logger for different scenarios and / or environments (development / test / delpoyment) at runtime. For more information about the PSR-3 specification visit www.php-fig.org For logging to the browser console one of the following Add-Ons have to be installed (both are available for Firefox and Chrome): - FirePHP - Chrome Logger InstallationYou can download the Latest Version from PHPClasses.org. The namespaces, class- and filenames meet the PSR-4 autoloader recommendations. UsageThe use of the available logger classes and the integration of the PSR-3 interfaces / treats can be seen in the examples *XLogTest.phpandTestClass.php*. For XML-HTML Transformation of the XML-Format use Example XSL-Template *XMLLogger.XSL* FirePHP Add-OnCan be found on www.firephp.org Chrome Logger Add-OnFor Google Chrome can be found on chrome.google.com For Firefox can be found on addons.mozilla.org |