refactor: made new LogLevel options flat
This commit is contained in:
parent
beea6cbac7
commit
d423da62b4
@ -125,25 +125,21 @@ interface FunctionMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface OverrideBuildOptions {
|
interface OverrideBuildOptions {
|
||||||
logLevel: {
|
callLogLevel: LogLevel | 'skip';
|
||||||
call: LogLevel | 'skip';
|
returnLogLevel: LogLevel | 'skip';
|
||||||
return: LogLevel | 'skip';
|
errorLogLevel: LogLevel | 'skip';
|
||||||
error: LogLevel | 'skip';
|
/** @deprecated use `callLogLevel: 'skip'` instead */
|
||||||
}
|
|
||||||
/** @deprecated instead use `{ logLevel: { call: 'skip' } }` */
|
|
||||||
skipCallLog: boolean;
|
skipCallLog: boolean;
|
||||||
/** @deprecated instead use `{ logLevel: { return: 'skip' } }` */
|
/** @deprecated use `returnLogLevel: 'skip'` instead */
|
||||||
skipReturnLog: boolean;
|
skipReturnLog: boolean;
|
||||||
/** @deprecated instead use `{ logLevel: { error: 'skip' } }` */
|
/** @deprecated use `errorLogLevel: 'skip'` instead */
|
||||||
skipErrorLog: boolean;
|
skipErrorLog: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultOverrideBuildOptions: OverrideBuildOptions = {
|
const defaultOverrideBuildOptions: OverrideBuildOptions = {
|
||||||
logLevel: {
|
callLogLevel: 'log',
|
||||||
call: 'log',
|
returnLogLevel: 'log',
|
||||||
return: 'log',
|
errorLogLevel: 'error',
|
||||||
error: 'error',
|
|
||||||
},
|
|
||||||
skipCallLog: false,
|
skipCallLog: false,
|
||||||
skipReturnLog: false,
|
skipReturnLog: false,
|
||||||
skipErrorLog: false,
|
skipErrorLog: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user