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
Variables
default
• default: winston.Logger
| null
= null
Defined in
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 , 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 >>>>>> |
modelName | string |
Returns
void