2
1

logs.ts 383 B

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