1.0.2 • Published 6 months ago
cobramodulelogger v1.0.2
CobraModuleLogger
ModuleLogger offers fast logging for P911 Calls, providing easy and intuitive logging based on Pino.
Levels
There are five predefined 5 levels.
debug : 1
info: 2
minor: 3
major: 4
critical: 5
How to use Module Logger
Parameters
reportSrc? -------- Report Source :: might be the module name // String
bentoId? -------- Bento ID // String
psapId? -------- PSAP ID // String
callId? -------- Call ID // String
callerId? -------- Caller ID // String
agentId? -------- Agent ID // String
message? -------- Message // String
Usage
import {ModuleLogger} from 'modulelogger'
ModuleLogger.debug({
reportSrc : "reportSrc",
bentoId: "bentoId",
psapId: "psapId",
callId: "callId",
callerId: "callerId",
agentId: "agentId",
message: "message",
})