PHP Classes


Recommend this page to a friend!
  Classes of Stefan Kientzler   XLogger PHP PSR Logger   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: XLogger PHP PSR Logger
Log events to browser console, text and XML files
Author: By
Last change: Update
Date: 2 years ago
Size: 2,289 bytes


Class file image Download

XLogger - PSR3 compliant Logging to Browser Console, Text- or XML-File

Latest Stable Version License Minimum PHP Version PHPStan Scrutinizer Code Quality

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

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


You can download the Latest Version from The namespaces, class- and filenames meet the PSR-4 autoloader recommendations.


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

Chrome Logger Add-On

For Google Chrome can be found on

For Firefox can be found on