feat: add logLevel option for replacement of deprecated skip options
This commit is contained in:
parent
35cdb6d870
commit
beea6cbac7
@ -1,5 +1,6 @@
|
||||
import {
|
||||
Logger,
|
||||
LogLevel,
|
||||
Injectable,
|
||||
Controller,
|
||||
ControllerOptions,
|
||||
@ -124,15 +125,25 @@ interface FunctionMetadata {
|
||||
}
|
||||
|
||||
interface OverrideBuildOptions {
|
||||
/** @deprecated */
|
||||
logLevel: {
|
||||
call: LogLevel | 'skip';
|
||||
return: LogLevel | 'skip';
|
||||
error: LogLevel | 'skip';
|
||||
}
|
||||
/** @deprecated instead use `{ logLevel: { call: 'skip' } }` */
|
||||
skipCallLog: boolean;
|
||||
/** @deprecated */
|
||||
/** @deprecated instead use `{ logLevel: { return: 'skip' } }` */
|
||||
skipReturnLog: boolean;
|
||||
/** @deprecated */
|
||||
/** @deprecated instead use `{ logLevel: { error: 'skip' } }` */
|
||||
skipErrorLog: boolean;
|
||||
}
|
||||
|
||||
const defaultOverrideBuildOptions: OverrideBuildOptions = {
|
||||
logLevel: {
|
||||
call: 'log',
|
||||
return: 'log',
|
||||
error: 'error',
|
||||
},
|
||||
skipCallLog: false,
|
||||
skipReturnLog: false,
|
||||
skipErrorLog: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user