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

Recommend this page to a friend!
  Info   View files Example   View files View files (23)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (2)    
Last Updated Ratings Unique User Downloads Download Rankings
2020-08-21 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 66 All time: 9,760 This week: 226Up
Version License PHP version Categories
xlogger 1.0.3Freely 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 winner
July 2020
Winner


Prize: 1 Year Subscription to NomadPHP Advanced PHP Learning
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: 53
All time rank: 1898119 in Germany Germany
Week rank: 9 Up1 in Germany Germany Up
Innovation award
Innovation award
Nominee: 6x

Winner: 4x

 

Details

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

  Files folder image Files  
File Role Description
Files folder imageCCampbell (1 directory)
Files folder imageFirePHP (1 directory)
Files folder imagePsr (1 directory)
Files folder imageSKien (1 directory)
Accessible without login Plain text file autoloader.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpstan.neon Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file TestClass.php Example Class source
Accessible without login Plain text file XLogTest.php Example Example script
Accessible without login Plain text file XMLLogger.xsl Data Auxiliary data

  Files folder image Files  /  CCampbell  
File Role Description
Files folder imageChromePhp (1 file)

  Files folder image Files  /  CCampbell  /  ChromePhp  
File Role Description
  Plain text file ChromePhp.php Class Class source

  Files folder image Files  /  FirePHP  
File Role Description
Files folder imageCore (2 files)

  Files folder image Files  /  FirePHP  /  Core  
File Role Description
  Plain text file FB.php Class Class source
  Plain text file FirePHP.php Class Class source

  Files folder image Files  /  Psr  
File Role Description
Files folder imageLog (8 files)

  Files folder image Files  /  Psr  /  Log  
File Role Description
  Plain text file AbstractLogger.php Class Class source
  Plain text file InvalidArgumentException.php Class Class source
  Plain text file LoggerAwareInterface.php Class Class source
  Plain text file LoggerAwareTrait.php Class Class source
  Plain text file LoggerInterface.php Class Class source
  Plain text file LoggerTrait.php Class Class source
  Plain text file LogLevel.php Class Class source
  Plain text file NullLogger.php Class Class source

  Files folder image Files  /  SKien  
File Role Description
Files folder imageXLogger (5 files)

  Files folder image Files  /  SKien  /  XLogger  
File Role Description
  Plain text file ChromePHPLogger.php Class Class source
  Plain text file FileLogger.php Class Class source
  Plain text file FirePHPLogger.php Class Class source
  Plain text file XLogger.php Class Class source
  Plain text file XMLLogger.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:66
This week:0
All time:9,760
This week:226Up

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