This example is giving me following error:
laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (ErrorException(code: 0): Illegal offset type at /var/www/html/vendor/illuminate/log/LogManager.php:102)
So I went to take a look inside the source code and I noticed the following call in the createStackDriver method:
Description:
I'm trying to use the LogManager->stack() method but I think its broken or I'm passing the wrong format of variables, see example of parameters below:
This example is giving me following error:
laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (ErrorException(code: 0): Illegal offset type at /var/www/html/vendor/illuminate/log/LogManager.php:102)
So I went to take a look inside the source code and I noticed the following call in the createStackDriver method:
When looking at the
$this->channel()
PHPDoc it looks like it expects a string:But guess what, it's getting an object instead -> this object is equal to the following:
This is the same as the value of the actual channel key shown above.
So it got me thinking, maybe there's something wrong in the source code or maybe I'm passing the wrong thing... I can't figure it out
Steps To Reproduce:
See above