logler / core
There is no license information available for the latest version (v1.2.7) of this package.
v1.2.7
2022-03-10 12:45 UTC
Requires
- aws/aws-sdk-php-resources: ^0.3.0
README
A flexible logging package that can output logs as formatted log files, write to sql, dynamo AWS and filestore There are currently 4 log handlers, that can be accessed by passing a type of:
- txt
- aws
- filestore
- db
Usage example:
- $type="txt";
- $collection="receipts";
- $data=['id'=>2,'amount'=>25];
- $topic="receipt_insert";
- $logger = new GeneralLogger($type,$collection)
- $logger->log($data,$topic);