revolution/laravel-logger-chatwork

This package is abandoned and no longer maintained. No replacement package was suggested.

ChatWork channel for Laravel Log

1.2.0 2021-05-25 14:22 UTC

This package is auto-updated.

Last update: 2024-05-18 00:57:21 UTC


README

Demo project
https://github.com/kawax/laravel-logger-project

Requirements

  • Laravel >= 6.0
  • PHP >= 7.2

Installation

Composer

composer require revolution/laravel-logger-chatwork

config/logging.php

    'channels' => [
        'stack' => [
            'driver'   => 'stack',
            'channels' => ['single', 'chatwork'],
        ],
        
        'chatwork' => [
            'driver' => 'custom',
            'via'    => Revolution\Laravel\Logger\ChatWork\ChatWorkLogger::class,
            'token'  => env('CHATWORK_TOKEN'),
            'room'   => env('CHATWORK_ROOM'),
            'level'  => 'emergency',
        ],
    ]

.env

CHATWORK_TOKEN=
CHATWORK_ROOM=

LICENSE

MIT