File: readme.md

Recommend this page to a friend!
  Classes of Stefan Kientzler  >  XLogger PHP PSR Logger  >  readme.md  >  Download  
File: readme.md
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: BOM removed
Date: 1 month ago
Size: 2,287 bytes
 

Contents

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 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


For more information send a message to info at phpclasses dot org.