Skip to content
Advertisement

Tag: amazon-cloudwatch

Laravel 5.6 aws cloudwatch log

Upgraded laravel from 5.4 to 5.6. Laravel removed $app->configureMonologUsing since version 5.6 the tutorial from aws not applicable anymore. https://aws.amazon.com/tw/blogs/developer/php-application-logging-with-amazon-cloudwatch-logs-and-monolog/ anyone can advise me where to migrate the logic inside $app->configureMonologUsing ? thanks Answer Install the latest version of CloudWatch handler library with: You can add a custom channel in config/logging.php like: and a factory class App/Logging/CloudWatchLoggerFactory.php as:

Advertisement