定制 mathieuimbert/slack-logger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mathieuimbert/slack-logger

Composer 安装命令:

composer require mathieuimbert/slack-logger

包简介

This is a simple package that allow a PHP script to send real time logs to Slack.

README 文档

README

Packagist

Latest Stable Version Latest Unstable Version Total Downloads License

Unit Tests

Build Status Coverage Status

Code Quality

SensioLabsInsight

Description

This is a simple package that allow a PHP script to send real time logs to Slack.

Please be aware that the repository is still in an early phase, and every new commit might not be backward compatible.

Installation

Installation of Slack Logger is done using Composer.

composer require mathieuimbert/slack-logger

Usage

$logger = new \MathieuImbert\Slack\Logger\SlackLogger('https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx');
$logger->warning('This a not test of the emergency broadcast system, this is the real thing');

Options

You can customize the name and the icon of your logger in the incoming webhook configuration, or you can do it from SlackLogger by passing the right options to he constructor:

$logger = new \MathieuImbert\SlackLogger\SlackLogger(
    'https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx',
    array('username' => 'My Slack Logger', 'icon_emoji' => ':cop:')
);

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2016-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固