bartlett/monolog-growlhandler 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bartlett/monolog-growlhandler

最新稳定版本:1.0.1

Composer 安装命令:

composer require bartlett/monolog-growlhandler

包简介

Monolog handler that send notifications to Growl on Mac OS X and Windows

README 文档

README

GrowlHandler is a handler for Monolog that send notifications to Growl on Mac OS X and Windows.

Install

  • via packagist the current source dev-master or the stable version 1.0.0

Documentation

The documentation for GrowlHandler 1.0 is available in 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 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 post in the CompatInfo’s blog.

If you want to use it, then :

  • install all the components via Composer

$ php composer.phar require --dev bartlett/monolog-growlhandler
  • create a phpunit.xml file with at least following contents :

<?xml version="1.0" encoding="UTF-8"?>
<phpunit
    backupGlobals="true"
    backupStaticAttributes="false"
    bootstrap="tests/bootstrap.dev.php"
    colors="true"
    stopOnError="false"
    stopOnFailure="false"
    stopOnIncomplete="false"
    stopOnRisky="false"
    stopOnSkipped="false"
    verbose="true"
    printerClass="Bartlett\Tests\Monolog\Handler\ResultPrinter"
>
    <filter>
        <whitelist>
            <directory suffix=".php">src/</directory>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="Monolog GrowlHandler Test Suite">
            <directory suffix="Test.php">tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>
  • 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<PHP_VERSION_ID>.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

统计信息

  • 总下载量: 129
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固