1 import { exists } from './misc'
2 import { LogLevel } from '../../../shared/models/server/log-level.type'
4 const logLevels: LogLevel[] = [ 'debug', 'info', 'warn', 'error' ]
6 function isValidLogLevel (value: any) {
7 return exists(value) && logLevels.includes(value)
10 // ---------------------------------------------------------------------------