Issues (20)

config/log-envelope.php (1 issue)

Labels
Severity
1
<?php
2
3
return [
4
5
    /*
6
     * Logging drivers.
7
     */
8
    'drivers' => [
9
        'mail' => [
10
            'enabled' => false,
11
            'to' => [
12
                // '[email protected]',
13
            ],
14
            'from_name'  => 'Log Envelope',
15
            'from_email' => '',
16
        ],
17
        
18
        'telegram' => [
19
            'enabled' => false,
20
            'token'   => env('LOGENVELOPE_TELEGRAM_TOKEN'),
0 ignored issues
show
The function env was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
            'token'   => /** @scrutinizer ignore-call */ env('LOGENVELOPE_TELEGRAM_TOKEN'),
Loading history...
21
            'chats'   => [
22
                // telegram user id
23
            ],
24
        ],
25
        
26
        'slack' => [
27
            'enabled'  => false,
28
            'username' => 'Log Envelope',
29
            'channel'  => '#logenvelope', // create channel
30
            'token'    => env('LOGENVELOPE_SLACK_TOKEN'),
31
        ],
32
        
33
        'database' => [
34
            'enabled' => false,
35
            'model'   => Yaro\LogEnvelope\Models\ExceptionModel::class,
36
        ],
37
    ],
38
    
39
    /*
40
     * Change config for LogEnvelope execution.
41
     */
42
    'force_config' => [
43
        // 'mail.driver' => 'sendmail',
44
        // 'queue.default' => 'sync',
45
    ],
46
47
    /*
48
     * How many lines to show before exception line and after.
49
     */
50
    'lines_count' => 6,
51
52
    /*
53
     * List of exceptions to skip sending.
54
     */
55
    'except' => [
56
        //'Exception',
57
        'Symfony\Component\HttpKernel\Exception\NotFoundHttpException',
58
        'Symfony\Component\Process\Exception\ProcessTimedOutException',
59
    ],
60
61
    /*
62
     * List of fields to censor
63
     */
64
    'censored_fields' => [
65
        'password',
66
    ],
67
68
];
69