2017 © Pedro Peláez
 

library logger

simple logging

image

bephp/logger

simple logging

  • Friday, January 29, 2016
  • by lloydzhou
  • Repository
  • 1 Watchers
  • 2 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

logger

A terrible logger utility for PHP (syntax same as noodlehaus/logger), (*1)

Example

<?php
require __DIR__.'/logger.php';

# logger is active based on truthiness of an expression
$debug = logger('./debug.log', getenv('PHP_ENV') === 'TEST');
$debug('This will show up if PHP_ENV is set to TEST');

# logger is active based result of callable
$info = logger('./info.log', function () {
  return true;
});
$info('This should show up');

# works like printf
$name = 'noodlehaus';
$info('Hello there %s', $name);

# defaults
$always = logger('./file.log');
$always('This always gets logged.');

The Versions

29/01 2016

dev-master

9999999-dev https://github.com/bephp/logger

simple logging

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

micro logging logs microphp logfile

29/01 2016

v1.0.2

1.0.2.0 https://github.com/bephp/logger

simple logging

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

micro logging logs microphp logfile

29/01 2016

v1.0.1

1.0.1.0 https://github.com/bephp/logger

simple logging

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

micro logging logs microphp logfile

28/01 2016

v1.0.0

1.0.0.0 https://github.com/bephp/logger

simple logging

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

micro logging logs microphp logfile