Download the PHP package dneey/laravel-cloudwatch without Composer
On this page you can find all versions of the php package dneey/laravel-cloudwatch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dneey/laravel-cloudwatch
More information about dneey/laravel-cloudwatch
Files in dneey/laravel-cloudwatch
Package laravel-cloudwatch
Short Description Quickly add cloudwatch logging to your laravel application.
License MIT
Informations about the package laravel-cloudwatch
AWS CloudWatch Logger for Laravel
Implementation of maxbanton AWS handler for monolog in Laravel.
Requirements
- PHP ^7.2.0
- Laravel ^6.0
Features
- Includes incoming request parameters on every log.
- Includes a
requestId
on every log to narrow down search results to a particular request's lifecycle.
Installation
Install the latest version with Composer by running
Basic Usage
Drop this in your application's .env
file with your correct AWS credentials.
That's it!
Extra Configurations
-
You can configure your cloudwatch
log group name
andstream name
in your .env file. If not set, the value of yourAPP_NAME
will be used as the log group name and the value of yourAPP_NAME
andAPP_ENV
will be used as your log stream name. -
Set log level eg. INFO,CRITICAL,DEBUG,API etc.
-
Set log retention period cloudwatch in days. The default is
14
days. -
By default all request params will be logged except passwords and password confirmations. To change this, set
LOG_REQUEST_PARAMS
to false in the .env file. - You can ignore any request parameter by adding a
LOG_REQUESTS_EXCEPT
entry to your .env file. The value should contain a comma separated string of fields to exclude from your logs.
Example
AWS
For AWS IAM and policy examples, kindly visit maxbanton AWS handler for monolog.