Issues (24)

config/logging.php (1 issue)

Labels
Severity
1
<?php
2
3
use Monolog\Handler\NullHandler;
4
use Monolog\Handler\StreamHandler;
5
use Monolog\Handler\SyslogUdpHandler;
6
7
return [
8
9
    /*
10
    |--------------------------------------------------------------------------
11
    | Default Log Channel
12
    |--------------------------------------------------------------------------
13
    |
14
    | This option defines the default log channel that gets used when writing
15
    | messages to the logs. The name specified in this option should match
16
    | one of the channels defined in the "channels" configuration array.
17
    |
18
    */
19
20
    'default' => env('LOG_CHANNEL', 'stack'),
21
22
    /*
23
    |--------------------------------------------------------------------------
24
    | Log Channels
25
    |--------------------------------------------------------------------------
26
    |
27
    | Here you may configure the log channels for your application. Out of
28
    | the box, Laravel uses the Monolog PHP logging library. This gives
29
    | you a variety of powerful log handlers / formatters to utilize.
30
    |
31
    | Available Drivers: "single", "daily", "slack", "syslog",
32
    |                    "errorlog", "monolog",
33
    |                    "custom", "stack"
34
    |
35
    */
36
37
    'channels' => [
38
        'stack' => [
39
            'driver' => 'stack',
40
            'channels' => ['single', 'newrelic'],
41
            'ignore_exceptions' => false,
42
        ],
43
44
        'single' => [
45
            'driver' => 'single',
46
            'path' => storage_path('logs/bytic.log'),
47
            'level' => 'debug',
48
        ],
49
50
        'daily' => [
51
            'driver' => 'daily',
52
            'path' => storage_path('logs/bytic.log'),
53
            'level' => 'debug',
54
            'days' => 14,
55
        ],
56
57
        'slack' => [
58
            'driver' => 'slack',
59
            'url' => env('LOG_SLACK_WEBHOOK_URL'),
60
            'username' => 'Laravel Log',
61
            'emoji' => ':boom:',
62
            'level' => 'critical',
63
        ],
64
65
        'papertrail' => [
66
            'driver' => 'monolog',
67
            'level' => 'debug',
68
            'handler' => SyslogUdpHandler::class,
69
            'handler_with' => [
70
                'host' => env('PAPERTRAIL_URL'),
71
                'port' => env('PAPERTRAIL_PORT'),
72
            ],
73
        ],
74
75
        'newrelic' => [
76
            'driver' => 'monolog',
77
            'handler' => \Nip\Logger\Monolog\Handler\NewRelicHandler::class,
0 ignored issues
show
The type Nip\Logger\Monolog\Handler\NewRelicHandler was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
78
            'formatter' => 'default',
79
        ],
80
81
        'stderr' => [
82
            'driver' => 'monolog',
83
            'handler' => StreamHandler::class,
84
            'formatter' => env('LOG_STDERR_FORMATTER'),
85
            'with' => [
86
                'stream' => 'php://stderr',
87
            ],
88
        ],
89
90
        'syslog' => [
91
            'driver' => 'syslog',
92
            'level' => 'debug',
93
        ],
94
95
        'errorlog' => [
96
            'driver' => 'errorlog',
97
            'level' => 'debug',
98
        ],
99
100
        'null' => [
101
            'driver' => 'monolog',
102
            'handler' => NullHandler::class,
103
        ],
104
105
        'emergency' => [
106
            'path' => storage_path('logs/bytic.log'),
107
        ],
108
    ],
109
];
110