manoaratefy/monolog-pushbullet 问题修复 & 功能扩展

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

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

manoaratefy/monolog-pushbullet

最新稳定版本:1.0.2

Composer 安装命令:

composer require manoaratefy/monolog-pushbullet

包简介

Yet another Monolog handler for Pushbullet

README 文档

README

Latest Version on Packagist Software License Total Downloads

manoaratefy/monolog-pushbullet is a laravel package providing a logging handler to send logs to Pushbullet.

Installation

You can install the package via composer:

composer require manoaratefy/monolog-pushbullet

Setup

Get access token from Pushbullet

You will need an access token from a Pushbullet account.

Add/edit your Laravel logging channel

You must add a new channel or edit an existing channel. This will be done into your config/logging.php file:

// config/logging.php
'channels' => [
    //...
    'pushbullet' => [
        'driver' => 'monolog',
        'level' => env('LOG_LEVEL', 'debug'),
        'handler' => \Manoaratefy\MonologPushbullet\LogHandler::class,
        'with' => [
            'title'       => env('PUSHBULLET_NOTIFICATION_TITLE'),
            'accessToken' => env('PUSHBULLET_ACCESSTOKEN'),
            'emails'      => env('PUSHBULLET_TARGET'),
        ],        
    ],
];

You can then provide the settings in your .env file:

PUSHBULLET_NOTIFICATION_TITLE="Notification from MyApp"
PUSHBULLET_ACCESSTOKEN="xxxxxxxxxxxx"
PUSHBULLET_TARGET="my-pushbullet@email-account.com"

You can provide multiple email accounts by separating them with a comma (,) or by providing an array:

// config/logging.php
'channels' => [
    //...
    'pushbullet' => [
        'driver' => 'monolog',
        'level' => env('LOG_LEVEL', 'debug'),
        'handler' => \Manoaratefy\MonologPushbullet\LogHandler::class,
        'with' => [
            'title'       => env('PUSHBULLET_NOTIFICATION_TITLE'),
            'accessToken' => env('PUSHBULLET_ACCESSTOKEN'),
            'emails'      => [
                'email1@example.com',
                'email2@example.com',
            ],
        ],        
    ],
];

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固