Skip to content

This package is capable to log all your activities and SQL queries to AWS Cloud Watch.

License

Notifications You must be signed in to change notification settings

darshithedpara/laravel-aws-cloud-watch-logger

Repository files navigation

This package is capable to log all your activities and SQL queries to AWS Cloud Watch.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads


Support me

Installation

You can install the package via composer:

composer require darshithedpara/laravel-aws-cloud-watch-logger

You can publish the config file with:

php artisan vendor:publish --provider="Darshithedpara\LaravelAwsCloudwatchLogger\LaravelAwsCloudwatchLoggerServiceProvider" --tag="laravel-aws-cloud-watch-logger-config"

This is the contents of the published config file:

return [
    'Documented soon'
];

Usage

php :
$laravelAwsCloudWatchLogger = new Darshithedpara\LaravelAwsCloudwatchLogger();
echo $laravelAwsCloudWatchLogger->check();
echo $laravelAwsCloudWatchLogger->setStore($store)
                                ->setTitle('test')
                                ->setModule(\Darshithedpara\LaravelAwsCloudWatchLogger\Types\Modules::ORDER)
                                ->setOperation(\Darshithedpara\LaravelAwsCloudWatchLogger\Types\Operations::CREATE)
                                ->setData(["order_id" => 1])
                                ->info();

laravel facade :
use Darshithedpara\LaravelAwsCloudWatchLogger\Facades\LaravelAwsCloudWatchLogger;
LaravelAwsCloudWatchLogger::check()
LaravelAwsCloudWatchLogger::setStore($store)
                          ->setTitle('test')
                          ->setModule(\Darshithedpara\LaravelAwsCloudWatchLogger\Types\Modules::ORDER)
                          ->setOperation(\Darshithedpara\LaravelAwsCloudWatchLogger\Types\Operations::CREATE)
                          ->setData(["order_id" => 1])
                          ->info();

laravel helper :
laravelAwsCloudwatchLogger()->check()
laravelAwsCloudwatchLogger()->setStore($store)
                            ->setTitle('test')
                            ->setModule(\Darshithedpara\LaravelAwsCloudWatchLogger\Types\Modules::ORDER)
                            ->setOperation(\Darshithedpara\LaravelAwsCloudWatchLogger\Types\Operations::CREATE)
                            ->setData(["order_id" => 1])
                            ->info();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

This package is capable to log all your activities and SQL queries to AWS Cloud Watch.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages