logler / core
Installs: 139
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/logler/core
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);