Remi's RPM repository - Packages

Blog | Forum | Repository | Wizard

php-Analog - PHP micro logging package

Website:
https://github.com/jbroadway/analog
Licence:
MIT
Vendor:
Remi Collet
Description:
MicroPHP logging package based on the idea of using closures for
configurability and extensibility. It functions as a static class,
but you can completely control the writing of log messages through
a closure function (aka anonymous functions).

Analog also comes with over a dozen pre-written handlers,
with examples for each in the examples folder. These include:
- Amon - Send logs to the Amon server monitoring tool
- Buffer - Buffer messages to send all at once (works with File,
  Mail, Stderr, and Variable handlers)
- File - Append messages to a file
- FirePHP - Send messages to FirePHP browser plugin
- GELF - Send message to the Graylog2 log management server
- Ignore - Do nothing
- LevelBuffer - Buffer messages and send only if sufficient error
  level reached
- LevelName - Convert log level numbers to names in log output
- Mail - Send email notices
- Mongo - Save to MongoDB collection, requires php-pecl-mongodb
  package to be installed
- Multi - Send different log levels to different handlers
- Post - Send messages over HTTP POST to another machine
- Slackbot - Post messages to Slack via Slackbot
- Stderr - Send messages to STDERR
- Syslog - Send messages to syslog
- Threshold - Only writes log messages above a certain threshold
- Variable - Buffer messages to a variable reference.

So while it's a micro class, it's highly extensible and very capable
out of the box too.

Autoloader: /usr/share/php/Analog/autoload.php

Packages

php-Analog-1.0.13-1.el6.remi.noarch [28 KiB] Changelog by Remi Collet (2019-06-28):
- update to 1.0.13
- use PHPUnit 6
php-Analog-1.0.10-1.el6.remi.noarch [26 KiB] Changelog by Remi Collet (2017-11-14):
- update to 1.0.10