2017 © Pedro PelĆ”ez
 

library php-logger

Basic logging for php

image

gregoryv/php-logger

Basic logging for php

  • Saturday, January 21, 2017
  • by gregoryv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,067 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 11 % Grown

The README.md

Build Status Code Climate Test Coverage, (*1)

Flattr this git repo, (*2)

README

Logger module for basic intuitive logging in php. Severity levels are based on those for syslog found in RFC5424. This module is a starting point from which you can evolve your logging needs as your system grows. The simplest and default way of using it is, (*3)

use gregoryv\logger\Logger;

$log = new Logger();
$log->info('something');

$x = 'something';
$log->debugf('Variable $x=%s', $x);

$log->turn('off debug'); // for this logger only
$log->debug('this will not be written');

$log->turn('off all warn'); // for this and all subsequently created loggers

The logger has methods for each severity level defined by RFC5424 6.2.1. That means you do not care much about where the messages end up initially, which surprisingly, is in the syslog., (*4)

Design, (*5)

Usage

Add to your composer.json, (*6)

{
  "require": {
    "gregoryv/php-logger": "*"
  }
}

The Versions

21/01 2017

dev-master

9999999-dev

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

03/01 2017

0.1.1

0.1.1.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

29/05 2015

0.1.0

0.1.0.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

25/05 2015

0.0.7

0.0.7.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

24/05 2015

0.0.6

0.0.6.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

21/05 2015

0.0.5

0.0.5.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

13/05 2015

0.0.4

0.0.4.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

12/05 2015

0.0.3

0.0.3.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

10/05 2015

0.0.2

0.0.2.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić

10/05 2015

0.0.1

0.0.1.0

Basic logging for php

  Sources   Download

MIT

The Development Requires

by Gregory Vinčić