setLevel

fun setLevel(newLevel: LogLevel)

Set minimum level at which an item can be logged. In descending order: Severe Warning Info Config Fine Finer Finest

Parameters

newLevel

{@link Level}


fun setLevel(newLevel: LogLevel, setConsoleHandler: Boolean)

Set minimum level at which an item can be logged. In descending order: Severe Warning Info Config Fine Finer Finest

Parameters

newLevel

{@link Level}

setConsoleHandler

logger could be set to FINE but the console handler could be set to INFO. In that case, anything logged at FINE wouldn't show because it'd get blocked by the console handler. Set to "true" to make sure the console handler will let you log at the level you want. If you're only concerned with the log file, you can leave "false"