PHP code example of augusl / laravel-lark-logging

1. Go to this page and download the library: Download augusl/laravel-lark-logging library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

augusl / laravel-lark-logging example snippets


'lark' => [
    'driver' => 'custom',
    'via' => PosAppVN\LarkLogger\LarkLogger::class,
    'level' => 'debug',
    'title' => env('APP_NAME', 'Laravel Log'),
    'retries' => 3,
],

'lark-app-store' => [
    'driver' => 'custom',
    'via' => PosAppVN\LarkLogger\LarkLogger::class,
    'level' => 'debug',
    'webhook_url' => env('LARK_APP_STORE_WEBHOOK_URL'),
    'title' => 'App Store Monitor',
    'level_colors' => [
        'info' => 'green',
        'warning' => 'red',
    ],
],

[
    'channels' => [

        'lark-log' => [
            'driver' => 'custom',
            'via' => PosAppVN\LarkLogger\LarkLogger::class,
            'level' => 'debug',
            'webhook_url' => 'https://open.feishu.cn/open-apis/bot/v2/hook/<your-hook-id-xxxxxx>',
            'title' => 'Laravel Log',
        ],

        'lark-system' => [
            'driver' => 'custom',
            'via' => PosAppVN\LarkLogger\LarkLogger::class,
            'level' => 'error',
            'webhook_url' => 'https://open.feishu.cn/open-apis/bot/v2/hook/<your-hook-id-xxxxxx>',
            'title' => 'System Log',
        ],
    ],
]
bash
php artisan vendor:publish --provider "PosAppVN\LarkLogger\LarkLoggerServiceProvider"