2017 © Pedro Peláez
 

library phpfox-log

Logging library for phpfox framework.

image

codelego/phpfox-log

Logging library for phpfox framework.

  • Tuesday, November 29, 2016
  • by codelego
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Log library for phpfox framework.

Implement http://www.php-fig.org/psr/psr-3/, (*1)

https://tools.ietf.org/html/rfc3164, (*2)

Code    Level      Meaning
0       Emergency  system is unusable
1       Alert      action must be taken immediately
2       Critical   critical conditions
3       Error      error conditions
4       Warning    warning conditions
5       Notice     normal but significant condition
6       Info       informational messages
7       Debug      Debug-level messages

Concepts

  • Log Formater is a driver to format message in various way.
  • Log Writer is a driver to write log message to difference target.
  • Log Manager is a container of "Writer", any invoke to Container will affected to all

Example, (*3)

$logContainer->add(new FilesystemWriter([...]));
$logContainer->add(new DatabaseWriter([...]));
$logContainer->debug('system unnable');
//result: write to database & file system

The Versions

29/11 2016

dev-master

9999999-dev

Logging library for phpfox framework.

  Sources   Download

MIT