Skip to content
How to use Monolog Logger in PHP
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
code
readme.md
talk_monolog_logger_php.pdf

readme.md

Debug-Messages and Logging with Monolog for PHP

Slides and example code of my ViennaPHP-Talk in October 2013.

  • Demonstration, how to collect all debug and log information/messages from PHP with the MONOLOG Logger.
  • Reintegration of this messages into PHP with PHP DebugBar.
  • Message distribution with MQTT to a message server (MQ-Server).
  • Demonstration of a proof of concept for the MQ-System for remote debugging and logging.

Special Features

The example code can be the missing cookbook for Monolog, because you can find there examples and descriptions for many many features of Monolog.

Requirements

Installation

  1. Create a project folder
  2. Install Composer
  3. Copy all files from code folder to your project folder
  4. Run composer.phar install.
  5. Move file MqttHandler.php to /vendor/monolog/monolog/src/Monolog/Handler. It is the missing MQTT-Handler for Monolog.
  6. Run the examples in your browser or your IDE and enjoy it!

Copyright

Feel free to share and use the code. If you want to use the slides for commercial purpose please ask me.

Stefan

Something went wrong with that request. Please try again.