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, any, IfAny<T, any, Document<unknown, any, T> & Require_id<T>>, any>, {}, {}, {}, {}, DefaultSchemaOptions, ObtainDocumentType<any, T, ResolveSchemaOptions<DefaultSchemaOptions>>, IfAny<FlatRecord<ObtainDocumentType<any, T, ResolveSchemaOptions<DefaultSchemaOptions>>>, any, Document<unknown, {}, FlatRecord<ObtainDocumentType<any, T, ResolveSchemaOptions<DefaultSchemaOptions>>>> & Require_id<FlatRecord<ObtainDocumentType<any, T, ResolveSchemaOptions<DefaultSchemaOptions>>>>>>
modelNamestring

Returns

void

Defined in

src/libraries/dbLogger.ts:40