logler/core

There is no license information available for the latest version (v1.2.7) of this package.

Installs: 139

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/logler/core

v1.2.7 2022-03-10 12:45 UTC

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);