the browser-facing portion of osu!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update logging configuration

nanaya 092b356a 57d15e60

+109 -17
+2
.env.example
··· 205 205 #OS_BOUNTY_URL=http://example.com/bounty_form 206 206 207 207 # OAUTH_MAX_USER_CLIENTS=1 208 + 209 + # LOG_CHANNEL=single
-17
config/app.php
··· 149 149 150 150 /* 151 151 |-------------------------------------------------------------------------- 152 - | Logging Configuration 153 - |-------------------------------------------------------------------------- 154 - | 155 - | Here you may configure the log settings for your application. Out of 156 - | the box, Laravel uses the Monolog PHP logging library. This gives 157 - | you a variety of powerful log handlers / formatters to utilize. 158 - | 159 - | Available Settings: "single", "daily", "syslog", "errorlog" 160 - | 161 - */ 162 - 163 - 'log' => env('APP_LOG', 'single'), 164 - 165 - 'log_level' => env('APP_LOG_LEVEL', 'debug'), 166 - 167 - /* 168 - |-------------------------------------------------------------------------- 169 152 | Autoloaded Service Providers 170 153 |-------------------------------------------------------------------------- 171 154 |
+107
config/logging.php
··· 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', 'single'), 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' => ['daily'], 41 + 'ignore_exceptions' => false, 42 + ], 43 + 44 + 'single' => [ 45 + 'driver' => 'single', 46 + 'path' => storage_path('logs/laravel.log'), 47 + 'level' => 'debug', 48 + ], 49 + 50 + 'daily' => [ 51 + 'driver' => 'daily', 52 + 'path' => storage_path('logs/laravel.log'), 53 + 'level' => 'debug', 54 + 'days' => 14, 55 + ], 56 + 57 + 'daily-production' => [ 58 + 'driver' => 'daily', 59 + 'path' => storage_path('logs/laravel.log'), 60 + 'level' => 'info', 61 + 'days' => 14, 62 + ], 63 + 64 + 'slack' => [ 65 + 'driver' => 'slack', 66 + 'url' => env('LOG_SLACK_WEBHOOK_URL'), 67 + 'username' => 'Laravel Log', 68 + 'emoji' => ':boom:', 69 + 'level' => 'critical', 70 + ], 71 + 72 + 'papertrail' => [ 73 + 'driver' => 'monolog', 74 + 'level' => 'debug', 75 + 'handler' => SyslogUdpHandler::class, 76 + 'handler_with' => [ 77 + 'host' => env('PAPERTRAIL_URL'), 78 + 'port' => env('PAPERTRAIL_PORT'), 79 + ], 80 + ], 81 + 82 + 'stderr' => [ 83 + 'driver' => 'monolog', 84 + 'handler' => StreamHandler::class, 85 + 'formatter' => env('LOG_STDERR_FORMATTER'), 86 + 'with' => [ 87 + 'stream' => 'php://stderr', 88 + ], 89 + ], 90 + 91 + 'syslog' => [ 92 + 'driver' => 'syslog', 93 + 'level' => 'debug', 94 + ], 95 + 96 + 'errorlog' => [ 97 + 'driver' => 'errorlog', 98 + 'level' => 'debug', 99 + ], 100 + 101 + 'null' => [ 102 + 'driver' => 'monolog', 103 + 'handler' => NullHandler::class, 104 + ], 105 + ], 106 + 107 + ];