Skip to main content

LoggingDecorators

@quik/logging


@quik/logging / LoggingDecorators

Variable: LoggingDecorators

LoggingDecorators: object

Defined in: decorators.ts:183

A collection of logging related decorators.

Type Declaration​

AsyncLog​

AsyncLog: <This, Args, Return>(prefix?) => (target, context) => (this, ...args) => Promise<any> = AsyncLogExecutor

Asynchronous variant of LogExecutor.

Type Parameters​

This​

This extends QObject

The class the decorated method belongs to.

Args​

Args extends any[]

The parameter types of the decorated method.

Return​

Return

The return type of the decorated method.

Parameters​

prefix?​

string

Optional prefix used when logging information.

Returns​

(target, context) => (this, ...args) => Promise<any>

AsyncTrackPerformance​

AsyncTrackPerformance: <This, Args, Return>(prefix?) => (target, context) => (this, ...args) => Promise<any> = AsyncTrackPerformanceExecutor

Asynchronous variant of TrackPerformanceExecutor.

Type Parameters​

This​

This extends QObject

The class the decorated method belongs to.

Args​

Args extends any[]

The parameter types of the decorated method.

Return​

Return

The return type of the decorated method.

Parameters​

prefix?​

string

Optional prefix used when logging information.

Returns​

(target, context) => (this, ...args) => Promise<any>

Log​

Log: <This, Args, Return>(prefix?) => (target, context) => (this, ...args) => any = LogExecutor

Decorator factory that logs method entry, exit and arguments.

Type Parameters​

This​

This extends QObject

The class the decorated method belongs to.

Args​

Args extends any[]

The parameter types of the decorated method.

Return​

Return

The return type of the decorated method.

Parameters​

prefix?​

string

Optional prefix used when logging information.

Returns​

(target, context) => (this, ...args) => any

TrackPerformance​

TrackPerformance: <This, Args, Return>(prefix?) => (target, context) => (this, ...args) => any = TrackPerformanceExecutor

Decorator factory used to log method execution time and memory usage.

Type Parameters​

This​

This extends QObject

The class the decorated method belongs to.

Args​

Args extends any[]

The parameter types of the decorated method.

Return​

Return

The return type of the decorated method.

Parameters​

prefix?​

string

Optional prefix used when logging information.

Returns​

(target, context) => (this, ...args) => any