loggerboy

1.4.13 • Public • Published

loggerboy

The Fattmerchant internal logging package

Log formatting

Parameters:

  • data (optional): The data being logged including messages.
  • source (optional): The specific project name, eg: coreapi:transactionModel etc.
  • status (optional): A number if applicable, eg. 200, 400, 500, etc.
  • route (optional): If applicable, the name of the route under which the current operation is processingoperation
  • id (optional): A uuid() created when this process was spawned. All subsequent logs for this thread or process should have this same id.

Example Output:

{
    "source": "Skynet:finix",
    "level": "info",
    "route: "finix/process/settlement",
    "operationId": "e78da17a-78bb-4cea-b735-26ec8742ac34",
    "timestamp": "2019-11-11T14:48:00.000Z",
    "data": {
        "message": "QUERY - SELECT * FROM TRANSACTION"
    }
}

Link to Spec

https://docs.google.com/document/d/1om9hvfSpfUQMrtc4tG9UeA4uzwyfaqQ-Oi6yhVrmNB4

Readme

Keywords

none

Package Sidebar

Install

npm i loggerboy

Weekly Downloads

5

Version

1.4.13

License

MIT

Unpacked Size

6.78 kB

Total Files

5

Last publish

Collaborators

  • lasergoat
  • daaavid
  • fattmerchant_tech