exaco / laravel-octane-dockerfile

Production-ready Dockerfile for Laravel Octane (FrankenPHP, Swoole, RoadRunner) powered web services and microservices. Done right.
MIT License
590 stars 89 forks source link

FrankenPHP Logging Not Working In Google Cloud #82

Closed yunus89 closed 4 weeks ago

yunus89 commented 3 months ago

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

'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 ?

smortexa commented 3 months ago

It is likely an upstream issue. Please open an issue on the Laravel Octane repository.