XLogger - PSR3 compliant Logging to Browser Console, Text- or XML-File
![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Stefanius67/XLogger/badges/quality-score.png?b=master)
This 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
Installation
You can download the Latest Version from PHPClasses.org. The namespaces, class- and filenames meet the PSR-4 autoloader recommendations.
Usage
The 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-On
Can be found on www.firephp.org
Chrome Logger Add-On
For Google Chrome can be found on
chrome.google.com
For Firefox can be found on addons.mozilla.org