Skip to content

Function: shouldLog()

ts
function shouldLog(logLevels, logLevelToCheck): boolean;

Defined in: packages/config-bound/src/utilities/logger.ts:63

Check if a log level should be logged

Parameters

ParameterTypeDescription
logLevels("trace" | "debug" | "info" | "warn" | "error" | "silent")[]The log levels to check
logLevelToCheck"trace" | "debug" | "info" | "warn" | "error" | "silent"The log level to check

Returns

boolean

True if the log level should be logged, false otherwise