pagevamp / laravel-cloudwatch-logs

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

stack traces #6

Closed richpeers closed 5 years ago

richpeers commented 5 years ago

Hey, great package. As ive set this up ive noticed a couple of commits around the formatter, LineFormater and JsonFormatter. Is there some way to include the stack traces. theres mention in Monolog/Formatters/JsonFormatter but not been able to set this via the logging config, any ideas? Keep up the great work!

developernaren commented 5 years ago

You can set the formatter in config now, just pushed the version 0.0.5. Please refer to this file https://github.com/pagevamp/laravel-cloudwatch-logs/blob/master/config/logging.php.

richpeers commented 5 years ago

Thanks @developernaren i just extended Monolog\Formatter\JsonFormatter and passed that class to logging.channels.cloudwatch.formatter in config