2017 © Pedro PelĂĄez
 

library zdt-logger-module

A ZF3 module to log data using Zend\Log and write them to ZendDeveloperTools toolbar.

image

jhuet/zdt-logger-module

A ZF3 module to log data using Zend\Log and write them to ZendDeveloperTools toolbar.

  • Thursday, July 28, 2016
  • by jhuet
  • Repository
  • 4 Watchers
  • 18 Stars
  • 39,298 Installations
  • PHP
  • 11 Dependents
  • 1 Suggesters
  • 5 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

JhuZdtLoggerModule

A ZF3 module to log data using Zend\Log and write them to ZendDeveloperTools toolbar. If you already have a logger in your application (that is an instance of Zend\Log\Logger) it will integrate well with it so you still will only have to use your logger., (*1)


Installation

The easiest way is by using composer. Just add "jhuet/zdt-logger-module": "dev-master" (or "jhuet/zdt-logger-module": "0.3" for last stable version) as a requirement in your composer.json file and it will be automatically downloaded next time you do composer.phar update., (*2)

If you don't use composer, drop the files of this archive (0.3 here) in your module directory., (*3)

Then, add Jhu\ZdtLoggerModule in the list of activated modules of your application.config.php file., (*4)

Options

Configuration options are available in config/jhu-zdt-logger.global.php.dist file. If you want to change the default ones, copy it in your config/autoload directory, remove the .dist extension and edit it., (*5)

Options available :, (*6)

  • logger : This module will by default create a Zend\Log\Logger and add a writer to it. If you already have a logger in your application, you can set it here so it will be used instead of creating a new one. The logger you'll set here has to be available thru the service manager.

Usage

If you don't already have a logger in your application, you may refere to this one any time you need to via the service manager with the jhu.zdt_logger key. Assuming $sm is the service maanger, you could call $sm->get('jhu.zdt_logger')->info('my log'); to log with the INFO priority., (*7)

If you already have a logger in your application and you have set it in the options, you just have to use your regular logger as you normally would and anything logged will be added to the ZendDeveloperTools toolbar., (*8)

Picture

usage example, (*9)

The Versions

28/07 2016

dev-master

9999999-dev https://github.com/jhuet/JhuZdtLoggerModule

A ZF3 module to log data using Zend\Log and write them to ZendDeveloperTools toolbar.

  Sources   Download

MIT

The Requires

 

The Development Requires

log module zf3 zdt

28/07 2016

1.0.0

1.0.0.0 https://github.com/jhuet/JhuZdtLoggerModule

A ZF3 module to log data using Zend\Log and write them to ZendDeveloperTools toolbar.

  Sources   Download

MIT

The Requires

 

The Development Requires

log module zf3 zdt

08/02 2013

0.3

0.3.0.0 https://github.com/jhuet/JhuZdtLoggerModule

A ZF2 module to log data using Zend_Log and write them to ZendDeveloperTools toolbar.

  Sources   Download

MIT

The Requires

 

The Development Requires

log zf2 module zdt

07/02 2013

0.2

0.2.0.0 https://github.com/jhuet/JhuZdtLoggerModule

A ZF2 module to log data using Zend_Log and write them to ZendDeveloperTools toolbar.

  Sources   Download

MIT

The Requires

 

The Development Requires

log zf2 module zdt

03/02 2013

0.1

0.1.0.0 https://github.com/jhuet/JhuZdtLoggerModule

A ZF2 module to log data using Zend_Log and write them to ZendDeveloperTools toolbar.

  Sources   Download

MIT

The Requires

 

The Development Requires

log zf2 module zdt