https://github.com/llaville/monolog-growlhandler
Monolog handler that send notifications to Growl on Mac OS X and Windows
https://github.com/llaville/monolog-growlhandler
monolog-handler
Last synced: over 1 year ago
JSON representation
Monolog handler that send notifications to Growl on Mac OS X and Windows
- Host: GitHub
- URL: https://github.com/llaville/monolog-growlhandler
- Owner: llaville
- License: bsd-3-clause
- Created: 2015-05-11T08:00:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T18:38:25.000Z (over 6 years ago)
- Last Synced: 2025-02-26T18:57:03.029Z (over 1 year ago)
- Topics: monolog-handler
- Language: PHP
- Homepage: http://php5.laurent-laville.org/growlhandler/
- Size: 66.4 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- License: LICENSE
Awesome Lists containing this project
README
= GrowlHandler for Monolog
**GrowlHandler** is a handler for Monolog
that send notifications to Growl on Mac OS X and Windows.
== Install
* via https://packagist.org/packages/bartlett/monolog-growlhandler/[packagist] the current source dev-master or the stable version 1.0.0
== Documentation
The documentation for GrowlHandler 1.0 is available
in http://php5.laurent-laville.org/growlhandler/manual/1.0/en/[English]
to read it online or download to read it later (multiple formats).
AsciiDoc source code are available on `docs` folder of the repository.
== Contribute
Contributions to source code and its documentation are always welcome.
As developper, I'm always happy when I have the more informations as possible to check and find out issues.
This is the reason why I've created a https://github.com/llaville/phpunit-LoggerTestListener[PHPUnit TestSuite Listener for compatible PSR-3 Loggers].
And recently, for the php-compatinfo project, I've wrote a new PHPUnit ResultPrinter class, that is based on PSR-3 logger concept.
You can learn more on this http://php5.laurent-laville.org/compatinfo/blog/201505-PHPUnit-ResultPrinter.html[post]
in the CompatInfo's blog.
If you want to use it, then :
- install all the components via Composer
[source,bash]
----
$ php composer.phar require --dev bartlett/monolog-growlhandler
----
- create a `phpunit.xml` file with at least following contents :
[source,xml]
----
src/
tests/
----
- configure the PSR-3 logger in `tests\MonologConsoleLogger.php`, if you want to change some behaviors.
NOTE: Default will log all PHPUnit events in local file `phpunit-growlhandler-php.log`
and log events corresponding to PHPUnit mode (`--verbose`, `--debug`) to the console.
.Output look like
----
PHPUnit 4.6.6 by Sebastian Bergmann and contributors.
Configuration read from C:\home\github\monolog-growlhandler\phpunit.xml
Monolog GrowlHandler Test Suite:
Test suite started with 19 tests
Bartlett\Tests\Monolog\Handler\GrowlHandlerTest:
Test suite started with 19 tests
Bartlett\Tests\Monolog\Handler\GrowlHandlerTest::testIsHandling:
Test suite started with 8 tests
Bartlett\Tests\Monolog\Handler\GrowlHandlerTest::testIsHandling:
Test suite ended. Results OK. Tests: 8, Assertions: 8
Bartlett\Tests\Monolog\Handler\GrowlHandlerTest::testIsHandlingLevel:
Test suite started with 8 tests
Bartlett\Tests\Monolog\Handler\GrowlHandlerTest::testIsHandlingLevel:
Test suite ended. Results OK. Tests: 8, Assertions: 8
Bartlett\Tests\Monolog\Handler\GrowlHandlerTest:
Test suite ended. Results OK. Tests: 0, Assertions: 0
Monolog GrowlHandler Test Suite:
Test suite ended. Results OK. Tests: 19, Assertions: 18
Time: 431 ms, Memory: 9.00Mb
Results OK. Tests: 19, Assertions: 18
----