import { exists } from './misc' ; import { LogLevel } from '../../../shared/models/server/log-level.type' ; const logLevels = [ 'debug' , 'info' , 'warn' , 'error' ] ; function isValidLogLevel ( value ) { return exists ( value ) && logLevels . includes ( value ) ; } export { isValidLogLevel } ;