2017 © Pedro Peláez
 

library logger

image

sugiphp/logger

  • Friday, May 29, 2015
  • by tzappa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 311 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Logger

Logger extends Monolog\Logger by adding the ability to log with custom error levels. Default Monolog levels are: - 600 -> EMERGENCY - 550 -> ALERT - 500 -> CRITICAL - 400 -> ERROR - 300 -> WARNING - 250 -> NOTICE - 200 -> INFO - 100 -> DEBUG, (*1)

Each handler logs messages with level more than or equals to some given predefined level. With Monolog you can make a handler with minimum level of INFO. Any message with level INFO or above will be logged. A messages with level DEBUG will not be logged., (*2)

SugiPHP logger on the other hand is not limited to only those predefined log levels. It can handle arbitrary levels and can filter (log or not) any combination of them. You can use handler with a filter, (*3)

"all -debug -system"

This will log any message with any level except messages with level "debug" and "system". Or you can make a filter like, (*4)

"none +alert +special"

which will not log any messages except those with "alert" and "special" levels. Note that "emergency" level will not be logged since it is not included in the filter. SugiPHP logger does not have levels higher or lower than others. Each message level is treated as any other, and has no any "weight" or whatsoever., (*5)

The Versions

29/05 2015

2.x-dev

2.9999999.9999999.9999999-dev

  Sources   Download

MIT

The Requires

 

by Plamen Popov

file logger

28/04 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Plamen Popov

log logging

28/04 2014

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Plamen Popov

log logging