XLogger PHP PSR Logger: Log events to browser console, text and XML files

Recommend this page to a friend!
  Info   Example   View files (22)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-08-03 (Less than 1 hour ago) Not yet rated by the usersTotal: 20 This week: 20All time: 9,987 This week: 12
Version License PHP version Categories
xlogger 1.0.1Freely Distributable7Debug, Console, Logging, PHP 7, PSR
Description Author

This package can be used to log events to the current browser console, text and XML files.

It provides support to logging of events with an interface compliant with PSR 3 PHP Standards Recommendation specification.

Currently it can log events using HTTP headers to pass log values to the current browser. The log messages may appear in the console or a separate Window section of the current browser when a specific browser add-on is installed. There are add-ons available for Firefox and Chrome.

It may also output log information to files in plain text or XML formats.

Innovation Award
PHP Programming Innovation award nominee
July 2020
Nominee
Vote
PSR-3 is a PHP Standards Recommendation that defines an interface for logging application events.

This package implements a PSR-3 compliant logging solution that allows logging PHP application events using HTTP response headers that can be processed by file browser extensions, so PHP developers can see debug information in the browser console.

Manuel Lemos
Picture of Stefan Kientzler
  Performance   Level  
Name: Stefan Kientzler is available for providing paid consulting. Contact Stefan Kientzler .
Classes: 11 packages by
Country: Germany Germany
Age: 52
All time rank: 2168137 in Germany Germany
Week rank: 8 1 in Germany Germany
Innovation award
Innovation award
Nominee: 6x

Winner: 3x

Details

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

Latest Stable Version License Minimum PHP Version

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

  Files  
File Role Description
CCampbell (1 directory)
FirePHP (1 directory)
Psr (1 directory)
SKien (1 directory)
autoloader.php Aux. Auxiliary script
LICENSE Lic. License text
readme.md Doc. Documentation
TestClass.php Example Class source
XLogTest.php Example Example script
XMLLogger.xsl Data Auxiliary data

  Files  /  CCampbell  
File Role Description
ChromePhp (1 file)

  Files  /  CCampbell  /  ChromePhp  
File Role Description
   ChromePhp.php Class Class source

  Files  /  FirePHP  
File Role Description
Core (2 files)

  Files  /  FirePHP  /  Core  
File Role Description
   FB.php Class Class source
   FirePHP.php Class Class source

  Files  /  Psr  
File Role Description
Log (8 files)

  Files  /  Psr  /  Log  
File Role Description
   AbstractLogger.php Class Class source
   InvalidArgumentException.php Class Class source
   LoggerAwareInterface.php Class Class source
   LoggerAwareTrait.php Class Class source
   LoggerInterface.php Class Class source
   LoggerTrait.php Class Class source
   LogLevel.php Class Class source
   NullLogger.php Class Class source

  Files  /  SKien  
File Role Description
XLogger (5 files)

  Files  /  SKien  /  XLogger  
File Role Description
   ChromePHPLogger.php Class Class source
   FileLogger.php Class Class source
   FirePHPLogger.php Class Class source
   XLogger.php Class Class source
   XMLLogger.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:20
All time:9,987
This week:12

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