pagevamp / laravel-cloudwatch-logs

Cloud Watch Driver for Laravel as needed at pagevamp
93 stars 48 forks source link

Unable to create configured logger. Using emergency logger. #19

Closed noil closed 4 years ago

noil commented 4 years ago

I followed to readme.md and got error

 {
    "message": "Unable to create configured logger. Using emergency logger.",
    "context": {
        "exception": {
            "class": "ErrorException",
            "message": "Undefined index: driver",
            "code": 0,
            "file": "/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:184"
        }
    },
    "level": 600,
    "level_name": "EMERGENCY",
    "channel": "channel_1",
    "datetime": {
        "date": "2020-04-13 14:46:01.110488",
        "timezone_type": 3,
        "timezone": "UTC"
    },
    "extra": []
}

Version laravel 5.6 updated from laraval 5.5

noil commented 4 years ago

I tried to replace the default logging

superern commented 4 years ago

I was confused when you said replace with the default logging (stack). Then found @developernaren 's answer and now I understand.

https://github.com/pagevamp/laravel-cloudwatch-logs/issues/7#issuecomment-463907907

Works after reverting back from LOG_CHANNEL=cloudwatch to LOG_CHANNEL=stack (or daily or single, etc)