blob: 30d0ce262999c54cbf57a9e7370258addbbd8c38 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { exists } from './misc'
import { LogLevel } from '../../../shared/models/server/log-level.type'
const logLevels: LogLevel[] = [ 'debug', 'info', 'warn', 'error' ]
function isValidLogLevel (value: any) {
return exists(value) && logLevels.indexOf(value) !== -1
}
// ---------------------------------------------------------------------------
export {
isValidLogLevel
}
|