ahmyi/cakephp_discord_log

Logging to Discord plugin for CakePHP

Installs: 105

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 1

Open Issues: 0

Type:cakephp-plugin

v0.0.1 2019-11-06 16:16 UTC

This package is auto-updated.

Last update: 2025-04-07 04:32:24 UTC


README

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require ahmyi/cakephp_discord_log

CakePHP config/app.php

    'Log' => [
        'debug' => [
            'className' => 'Ahmyi\DiscordLog\Log\Engine\DiscordLog',
            'path' => LOGS,
            'file' => 'debug',
            'url' => env('LOG_DEBUG_URL', null),
            'scopes' => false,
            'webhook' => WEBHOOK_URL
        ],
        'error' => [
            'className' => 'Ahmyi\DiscordLog\Log\Engine\DiscordLog',
            'path' => LOGS,
            'file' => 'error',
            'url' => env('LOG_ERROR_URL', null),
            'scopes' => false,
            'levels' => [ 'error', 'critical', 'alert', 'emergency'],
            'webhook' => WEBHOOK_URL
        ]
    ],

Discord webhook

You can refer on how to create a webhook here.