承接 renesis-tech/monday-logger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

renesis-tech/monday-logger

Composer 安装命令:

composer require renesis-tech/monday-logger

包简介

Monday Logger is a laravel package for monday.com integrations, used to post exceptions to monday board

README 文档

README

Laravel monday logger is laravel plugin to send exception updates to Monday.com

Installation

This package is compatible with laravel 5.4+. Package can be installed using composer

composer require renesis-tech/monday-logger

Register Service Provider in your provider array of config/app.php

\Renesis\MondayLogger\ServiceProvider\MondayLoggerServiceProvider::class,

Add Facade to your config/app.php

'MondayLogger' => \Renesis\MondayLogger\Facade\MondayLogger::class,

Monday.com Configurations

Next you have to set monday.con configurations in .env file.

  1. Set monday.com V2 API key in .env file with key MONDAY_API_KEY

  2. Set Monday.com Board ID with key MONDAY_BOARD_ID

  3. Set Monday's Board group id with key MONDAY_GROUP_ID

  4. Set MONDAY_LOGGER_ENABLED to enable and disable monday.com logger, default is true.

!!!Without setting these configuration, package will not work.!!!

Here is how you can generate monday.com api v2 key Monday.com Developers.

Next you can publish configuration file by using this command

php artisan vendor:publish --provider="Renesis\MondayLogger\ServiceProvider\MondayLoggerServiceProvider"

It will create configurations file in config directory of project with an array.

return [
    'board_id' => env('MONDAY_BOARD_ID',null),
    'group_id' => env('MONDAY_GROUP_ID',null),
    'enabled' => true,
    'auth_info' => true
];

Usage

To log each exception to monday.com call MondayLogger facade report method in report function of app/Exceptions/Handler.php

public function report(Exception $exception)
    {
        //Enabled Monday Logger Reporting
        MondayLogger::report($exception);
        parent::report($exception);
    }

Important It will not log if you are using try catch method, You have to manually call MondayLogger report Method in catch case e.g.

try{
    //Some Logic Here
}catch (\Exception $e){
    MondayLogger::report($e)
}   

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固