We are using FrankenPHP.Alpine.Dockerfile in a simple laravel application that is deployed on Google Cloud Run.
Logging is needed to go to Google Cloud logging.
This is the code added to facilitate logging though is not working
In config/logging.php and LOG_CHANNELS is set to stderr
We are using
FrankenPHP.Alpine.Dockerfile
in a simple laravel application that is deployed on Google Cloud Run. Logging is needed to go to Google Cloud logging.This is the code added to facilitate logging though is not working In
config/logging.php
andLOG_CHANNELS
is set tostderr
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER', \Monolog\Formatter\GoogleCloudLoggingFormatter::class),
'with' => [
'stream' => 'php://stderr',
],
],
Whenever is
Log::debug(something)
the log is not written to Google Cloud Logging. What is needed for us to enable logging ?