MongoDBLoggerModule

mongodblogger. MongoDBLoggerModule

Module for logging message to the MongoDB

Constructor

new MongoDBLoggerModule()

Source:

Extends

  • AbstractApiModule

Members

logInternalErrors :Boolean

Source:
Whether internal errors should be logged
Type:
  • Boolean

Methods

(async) init()

Source:

(async) logToDb(date, level, module, …data)

Source:
Logs a message to the database
Parameters:
Name Type Attributes Description
date Date When the data was logged
level String Severity of the message
module String Name of the module logging the message
data * <repeatable>
Other arguments to be logged

(async) setValues()

Source: