MongoDBLoggerModule

mongodblogger. MongoDBLoggerModule

Module for logging message to the MongoDB

Constructor

new MongoDBLoggerModule()

Source:

Extends

  • AbstractApiModule

Members

logInternalErrors :Boolean

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

Methods

(async) init()

Source:

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

Description:
  • Logs a message to the database
Source:
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: