logler/core

此包最新版本(v1.2.7)没有可用的许可证信息。

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

README

一个灵活的日志包,可以将日志输出为格式化的日志文件,写入SQL、AWS的Dynamo和文件存储。目前有4个日志处理器,可以通过传递以下类型访问:

  • txt
  • aws
  • filestore
  • db

使用示例

  • $type="txt";
  • $collection="receipts";
  • $data=['id'=>2,'amount'=>25];
  • $topic="receipt_insert";
  • $logger = new GeneralLogger($type,$collection)
  • $logger->log($data,$topic);