diff --git a/src/main/kotlin/com/featurevisor/sdk/Logger.kt b/src/main/kotlin/com/featurevisor/sdk/Logger.kt index 34776c0..3e2975c 100644 --- a/src/main/kotlin/com/featurevisor/sdk/Logger.kt +++ b/src/main/kotlin/com/featurevisor/sdk/Logger.kt @@ -27,6 +27,7 @@ class Logger( fun createLogger(levels: List = defaultLogLevels, handle: LogHandler = defaultLogHandler): Logger = Logger(levels, handle) } + fun setLevels(levels: List) { this.levels = levels } @@ -43,7 +44,6 @@ class Logger( fun error(message: LogMessage, details: LogDetails? = null) = log(ERROR, message, details) - private fun log(level: LogLevel, message: LogMessage, details: LogDetails? = null) { if (level in levels) { handle(level, message, details)