Git Product home page Git Product logo

jhuzdtloggermodule's Introduction

JhuZdtLoggerModule

A ZF2 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.


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.

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

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

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.

Options available :

  • 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.

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.

Picture

usage example

jhuzdtloggermodule's People

Contributors

jhuet avatar ddetyuk avatar rvanduiven avatar

Watchers

Laurent Pitteloud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.