Taxum / @taxum/core / middleware/trace / DefaultOnFailure
Class: DefaultOnFailure
Defined in: middleware/trace.ts:99
Implements
Constructors
Constructor
new DefaultOnFailure(
level
):DefaultOnFailure
Defined in: middleware/trace.ts:102
Parameters
level
LogLevel
= DEFAULT_ERROR_LEVEL
Returns
DefaultOnFailure
Methods
onFailure()
onFailure(
classification
,latency
):void
Defined in: middleware/trace.ts:106
Do the thing.
latency
is the duration in milliseconds since the request was received.
Parameters
classification
string
latency
number
Returns
void
Implementation of
OnFailure.onFailure