parseLogLevel

fun parseLogLevel(value: String?, defaultValue: Int): Int

Parses the log level from a String.

Return

The log level.

Parameters

value

The log level as a String.

defaultValue

Default value if the value is empty.

Throws

if an invalid log level is provided.