laravel-cloudwatch-logs icon indicating copy to clipboard operation
laravel-cloudwatch-logs copied to clipboard

Import for use PhpNexus\Cwh\Handler\CloudWatch; broken

Open drewgallagher opened this issue 9 months ago • 7 comments

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

drewgallagher avatar Sep 29 '23 17:09 drewgallagher

Any updates on this?

drewgallagher avatar Oct 04 '23 15:10 drewgallagher

What laravel version were you using?

hungnv-sr avatar Oct 18 '23 10:10 hungnv-sr

8

drewgallagher avatar Oct 18 '23 12:10 drewgallagher

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.

hungnv-sr avatar Oct 19 '23 07:10 hungnv-sr

is this documented in the readme?

drewgallagher avatar Oct 19 '23 11:10 drewgallagher

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)

ahmadwaliesipick avatar Oct 20 '23 02:10 ahmadwaliesipick

Same issue here "laravel/framework": "^9.19" "pagevamp/laravel-cloudwatch-logs": "^1.1"

Ycfx avatar Nov 16 '23 14:11 Ycfx