Skip to main content

talawa-api / Exports / libraries/dbLogger

Module: libraries/dbLogger

Table of contents

Interfaces

Type Aliases

Variables

Functions

Type Aliases

TransactionLogInfo

Ƭ TransactionLogInfo: Object

Type declaration

NameType
modelstring
query?string
timestampstring
typestring
update?string

Defined in

src/libraries/dbLogger.ts:5

Variables

default

default: winston.Logger | null = null

Defined in

src/libraries/dbLogger.ts:13

Functions

createLoggingMiddleware

createLoggingMiddleware<T>(schema, modelName): void

Type parameters

NameType
Textends Document<any, any, any>

Parameters

NameType
schemaSchema<T, Model<T, any, any>, undefined, {}>
modelNamestring

Returns

void

Defined in

src/libraries/dbLogger.ts:40