laravel-cloudwatch-logs
laravel-cloudwatch-logs copied to clipboard
Import for use PhpNexus\Cwh\Handler\CloudWatch; broken
Locally I was having an issue with this library.
When trying out the Logger.php without this library along with the dependencies on cwh, I got the same import error.
After changing
use PhpNexus\Cwh\Handler\CloudWatch;
to
use Maxbanton\Cwh\Handler\CloudWatch;
It worked. Not sure if this is a bug or not but if it is it should be addressed
Any updates on this?
What laravel version were you using?
8
If you are using Laravel version lower than 10 then use "pagevamp/laravel-cloudwatch-logs":"^1.0", the default log handler will be Maxbanton\Cwh\Handler\CloudWatch.
is this documented in the readme?
I am getting same error: EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (Error(code: 0): Class "PhpNexus\Cwh\Handler\CloudWatch" not found at vendor/pagevamp/laravel-cloudwatch-logs/src/Logger.php:34)
Same issue here "laravel/framework": "^9.19" "pagevamp/laravel-cloudwatch-logs": "^1.1"