blob: 0f266ed3b8e4c8dfaf3790ec22280c1eb6fb864f (
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.includes(value)
}
// ---------------------------------------------------------------------------
export {
isValidLogLevel
}
|