2017 © Pedro Peláez
 

library logger

Minimalist PSR3 Logger (mostly extracted from symfony)

image

chiron/logger

Minimalist PSR3 Logger (mostly extracted from symfony)

  • Monday, May 7, 2018
  • by ncou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 92 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 9100 % Grown

The README.md

Chiron-logger

Build Status Coverage Status CodeCov, (*1)

Total Downloads Monthly Downloads, (*2)

StyleCI, (*3)

Example :, (*4)

<?php
// you can define minimal login level (ex : ERROR) if you add a second parameter, by default all the levels are logged
$logger = new Chiron\Logger('./' . 'logger_'. date('Y-m-d') .'.log');
$logger->log('error',  'Example error text' );

//Multilines + replace value beetween "{}"
$logger->log('error',  'Line 1 : {TXT}', array('TXT' => null) ); // empty
$logger->log('error',  'Line 2 : {TXT}', array('TXT' => 'toto') ); // string
$logger->log('error',  'Line 3 : {TXT}', array('TXT' => 1234) ); // integer
$logger->log('error',  'Line 4 : {TXT}', array('TXT' => date(\DateTime::RFC3339) ) ); // object date

$logger->info('info text !');
$logger->notice('notice text !');

$logger->warning('Warning text : {TXT}', array('TXT' => 'Hector' ) );

Minimalist PSR3 Logger based on : https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Log/Logger.php, (*5)

The Versions

07/05 2018

dev-master

9999999-dev https://github.com/ncou/Chiron-Logger

Minimalist PSR3 Logger (mostly extracted from symfony)

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr log symfony psr3

07/05 2018

0.2

0.2.0.0 https://github.com/ncou/Chiron-Logger

Minimalist PSR3 Logger (mostly extracted from symfony)

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr log symfony psr3

07/05 2018

0.1

0.1.0.0 https://github.com/ncou/Chiron-Logger

Minimalist PSR3 Logger (mostly extracted from symfony)

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr log symfony psr3

07/05 2018

dev-analysis-XVLjOO

dev-analysis-XVLjOO https://github.com/ncou/Chiron-Logger

Minimalist PSR3 Logger (mostly extracted from symfony)

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr log symfony psr3