JikanKt / moe.ganen.jikankt.utils / JikanLogger / getLog

getLog

fun getLog(name: String): Logger

Will get the org.slf4j.Logger with the given log-name or create and cache a fallback logger if there is no SLF4J implementation present.

The fallback logger will be an instance of a slightly modified version of SLF4Js SimpleLogger.

Parameters

name - The name of the Logger

Return
Logger with given log name

fun getLog(clazz: Class<*>): Logger

Will get the org.slf4j.Logger for the given Class or create and cache a fallback logger if there is no SLF4J implementation present.

The fallback logger will be an instance of SimpleLogger.

Parameters

clazz - The class used for the Logger name

Return
Logger for given Class