Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Logging with TYPO3 CMS and monolog

1,050 views

Published on

Logging in TYPO3 CMS is very easy if using the TYPO3 extension "logging" by Georg Ringer. It brings monolog into the world of TYPO3 CMS to log to various places.

Published in: Technology
  • Be the first to comment

Logging with TYPO3 CMS and monolog

  1. 1. Logging with TYPO3 CMS & monolog
  2. 2. T3BOARD15 TYPO3 Inspiring people to share Agenda ✓ Monolog ✓ Integration in TYPO3 CMS ✓ Demo ✓ Questions?
  3. 3. T3BOARD15 TYPO3 Inspiring people to share Monolog ✓ Popular logging API in PHP ✓ https://github.com/Seldaek/monolog Concepts based on ✓ Handler ✓ Processor ✓ Formatter
  4. 4. T3BOARD15 TYPO3 Inspiring people to share Handler ✓ Files & Syslog ✓ Send alerts & emails ✓ Email, Swiftmail, HipChat, Slack, ... ✓ Log servers & network logging ✓ AMQP, Graylog2, NewRelic, Syslogd, ... ✓ Logging in Development ✓ FirePHP, Chrome, ... ✓ Log to the Database ✓ Redis, MongoDB, CouchDB, … ✓ TYPO3 Database Monolog
  5. 5. T3BOARD15 TYPO3 Inspiring people to share Processor ✓ Git information ✓ Memory ✓ Current URLS ✓ … ✓ TYPO3 Processor Monolog
  6. 6. T3BOARD15 TYPO3 Inspiring people to share Formatter ✓ HTML ✓ Json ✓ Line ✓ specific Formatters Monolog
  7. 7. T3BOARD15 TYPO3 Inspiring people to share TYPO3 EXT logging ✓ https://github.com/georgringer/logging ✓ Requirements ✓ PHP 5.5 => PHP 5.4 ✓ CMS 7 => 6.2 LTS Let’s take a look!
  8. 8. T3BOARD15 TYPO3 Inspiring people to share EXT:logging Backend module
  9. 9. T3BOARD15 TYPO3 Inspiring people to share EXT:logging Configuration I $GLOBALS['TYPO3_CONF_VARS']['MONOLOG'] = array( 'processorConfiguration' => array( 'MonologProcessorIntrospectionProcessor' => array(), GeorgRingerLoggingLogMonologProcessorTypo3Processor::class => array(), ) );
  10. 10. T3BOARD15 TYPO3 Inspiring people to share EXT:logging Configuration II $GLOBALS['TYPO3_CONF_VARS']['MONOLOG'] = array( 'handlerConfiguration' => array( 'name' => 'montagmorgen.at', 'handlers' => array( MonologHandlerStreamHandler::class => array( PATH_site . 'typo3temp/out.log', MonologLogger::WARNING ), GeorgRingerLoggingLogMonologHandlerDatabaseHandler::class => array() ));
  11. 11. T3BOARD15 TYPO3 Inspiring people to share EXT:logging Logging to Graylog2
  12. 12. T3BOARD15 TYPO3 Inspiring people to share Questions? Thanks!
  13. 13. inspiring people to share.
  14. 14. T3BOARD15 TYPO3 Inspiring people to share Georg Ringer ✓ TYPO3 developer user since 2005 (first extension still in production!) ✓ TYPO3 CMS core developer ✓ Member of the TYPO3 Security Team ✓ working at Cyberhouse Gmbh ✓ montagmorgen.at

×