toLogLevel method

LogLevel toLogLevel (dynamic value, [ LogLevel defaultValue = LogLevel.Info ])

Converts numbers and strings to standard log level values.

  • value a value to be converted
  • defaultValue a default value if conversion is not possible Return converted log level