Skip to content

Latest commit

 

History

History
79 lines (46 loc) · 1.98 KB

libraries_dbLogger.md

File metadata and controls

79 lines (46 loc) · 1.98 KB

talawa-api / Exports / libraries/dbLogger

Module: libraries/dbLogger

Table of contents

Interfaces

Type Aliases

Variables

Functions

Type Aliases

TransactionLogInfo

Ƭ TransactionLogInfo: Object

Type declaration

Name Type
model string
query? string
timestamp string
type string
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

Name Type
T extends Document<any, any, any>

Parameters

Name Type
schema Schema<T, Model<T, any, any>, undefined, {}>
modelName string

Returns

void

Defined in

src/libraries/dbLogger.ts:40