feat: add logLevel option for replacement of deprecated skip options

This commit is contained in:
Shinwoo PARK 2025-02-11 20:46:25 +09:00
parent 35cdb6d870
commit beea6cbac7

View File

@ -1,5 +1,6 @@
import { import {
Logger, Logger,
LogLevel,
Injectable, Injectable,
Controller, Controller,
ControllerOptions, ControllerOptions,
@ -124,15 +125,25 @@ interface FunctionMetadata {
} }
interface OverrideBuildOptions { interface OverrideBuildOptions {
/** @deprecated */ logLevel: {
call: LogLevel | 'skip';
return: LogLevel | 'skip';
error: LogLevel | 'skip';
}
/** @deprecated instead use `{ logLevel: { call: 'skip' } }` */
skipCallLog: boolean; skipCallLog: boolean;
/** @deprecated */ /** @deprecated instead use `{ logLevel: { return: 'skip' } }` */
skipReturnLog: boolean; skipReturnLog: boolean;
/** @deprecated */ /** @deprecated instead use `{ logLevel: { error: 'skip' } }` */
skipErrorLog: boolean; skipErrorLog: boolean;
} }
const defaultOverrideBuildOptions: OverrideBuildOptions = { const defaultOverrideBuildOptions: OverrideBuildOptions = {
logLevel: {
call: 'log',
return: 'log',
error: 'error',
},
skipCallLog: false, skipCallLog: false,
skipReturnLog: false, skipReturnLog: false,
skipErrorLog: false, skipErrorLog: false,