diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt index a53ad43c..709f3093 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt @@ -45,11 +45,7 @@ open class MessageLogCollector { val type = MessageLogEntryType.Error val messageToLog = createMessage(type, message, context, false) - if (e != null) { - getLogger(loggingClass).error(e) { messageToLog } - } else { - getLogger(loggingClass).error { messageToLog } - } + LoggerFactory.getLogger(loggingClass).error(e) { messageToLog } val errorStackTrace = if (e != null) NewLine + getStackTrace(e) else "" @@ -149,8 +145,4 @@ open class MessageLogCollector { return if (indexOf16thLine < 0) stackTraceString else stackTraceString.substring(0, indexOf16thLine) } - protected open fun getLogger(loggingClass: KClass<*>): Logger { - return LoggerFactory.getLogger(loggingClass) - } - } \ No newline at end of file