定制 chronostep/chronoslack 二次开发

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

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

chronostep/chronoslack

Composer 安装命令:

composer require chronostep/chronoslack

包简介

This is slack Logging notification.

README 文档

README

This package will be sent logging notification on slack.

Source

URL
Packagist https://packagist.org/packages/chronostep/chronoslack
Github https://github.com/ChronoDevs/chronoslack

Installation Procedure

Install Composer Package

composer require chronostep/chronoslack

Configuration

You'll need to register the configuration in the environment. The file will be .env. In this file you will need to provide the webhook url. I recommend reading Slack Incoming Webhooks for more information on how to setup the webhook.

LOG_SLACK_WEBHOOK_URL=
LOG_SLACK_NAME=
LOG_SLACK_LOG=
LOG_SLACK_CHANNEL=

Example Usage

$error = ['status' => 404, 'message' => 'Not found!'];

SlackLog::error($error);

// Use logging guard if not specify `LOG_SLACK_LOG` in the environment.
if (SlackLog::isErrorEnabled()) {
    SlackLog::error($error);
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固