Skip to content

Commit

Permalink
Merge branch 'master' into hubbub
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes committed Dec 14, 2023
2 parents 7399257 + 868ac9f commit cdfcb8c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions sourcecode/apis/contentauthor/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ APP_DEBUG=true
APP_KEY=
APP_URL=https://ca.edlib.test

LOG_CHANNEL=stderr
LOG_STDERR_FORMATTER=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
Expand Down
20 changes: 13 additions & 7 deletions sourcecode/apis/contentauthor/config/logging.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use App\Logging\JsonFormatter;
use Monolog\Handler\StreamHandler;

return [
Expand Down Expand Up @@ -40,38 +41,43 @@
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'level' => env('LOG_LEVEL', 'info'),
'replace_placeholders' => true,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'level' => env('LOG_LEVEL', 'info'),
'days' => 7,
'replace_placeholders' => true,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => 'critical',
'replace_placeholders' => true,
],
'stderr' => [
'driver' => 'monolog',
'handler' => StreamHandler::class,
'formatter' => App\Logging\JsonFormatter::class,
'formatter' => env('LOG_STDERR_FORMATTER', JsonFormatter::class),
'with' => [
'stream' => 'php://stderr',
],
'level' => 'info',
'level' => env('LOG_LEVEL', 'info'),
],
'syslog' => [
'driver' => 'syslog',
'level' => 'debug',
'level' => env('LOG_LEVEL', 'info'),
'replace_placeholders' => true,
],
'errorlog' => [
'driver' => 'errorlog',
'level' => 'debug',
]
'level' => env('LOG_LEVEL', 'info'),
'replace_placeholders' => true,
],
],

];

0 comments on commit cdfcb8c

Please sign in to comment.