2017 © Pedro Peláez
 

library pg-logger

ZF2 logging module

image

earlhickey/pg-logger

ZF2 logging module

  • Friday, June 19, 2015
  • by earlhickey
  • Repository
  • 1 Watchers
  • 0 Stars
  • 239 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

PgLogger

ZF2 Logging Module, (*1)

Log to DB, Email, File, Syslog, FirePHP. Fully customizable with config file., (*2)

Call logger directly or with triggers., (*3)

Installation

Main Setup

By cloning project

  1. Install the PgLogger ZF2 module by cloning it into ./vendor/.
  2. Clone this project into your ./vendor/ directory.

With composer

  1. Add this project in your composer.json:, (*4)

    "require": {
        "earlhickey/pg-logger": "0.*"
    }
    
  2. Now tell composer to download PgLogger by running the command:, (*5)

    $ php composer.phar update
    

Post installation

  1. Enabling it in your application.config.php file., (*6)

    <?php
    return array(
        'modules' => array(
            // ...
            'PgLogger',
        ),
        // ...
    );
    
  2. Copy ./vendor/earlhickey/PgLogger/config/pg-logger.global.php.dist to ./config/autoload/pg-logger.global.php and change the values as desired., (*7)

  3. Create directory data/log in the root of your ZF2 project., (*8)

Usage

  1. Call the logger service directly: php $this->getServiceLocator()->get('PgLogger\Service\Logger')->crit('test');
  2. Use triggers: php $this->getEventManager()->trigger('log', $this, array('message' => $message, 'priority' => Logger::CRIT));
    • message
    • priority is optional (default: INFO)

The Versions

19/06 2015

dev-master

9999999-dev https://github.com/earlhickey/PgLogger

ZF2 logging module

  Sources   Download

BSD-3-Clause

The Requires

 

logger logging zf2 pg13

19/06 2015

0.2.1

0.2.1.0 https://github.com/earlhickey/PgLogger

ZF2 logging module

  Sources   Download

BSD-3-Clause

The Requires

 

logger logging zf2 pg13

19/06 2015

0.2

0.2.0.0 https://github.com/earlhickey/PgLogger

ZF2 logging module

  Sources   Download

BSD-3-Clause

The Requires

 

logger logging zf2 pg13

20/01 2015

0.1

0.1.0.0 https://github.com/earlhickey/PgLogger

ZF2 logging module

  Sources   Download

BSD-3-Clause

The Requires

 

logger logging zf2 pg13