Open mustafaozhan opened 11 months ago
In the past, I was able to use the below in my iOS codebase:
logger.i(message: { "Application init" })
but with the latest version it complains that I am missing the tag and the throwable. I created below extensions for now
tag
throwable
extension KermitLogger { func i(message: @escaping () -> String) { self.i(throwable: nil, tag: "Kermit", message: message) } func d(message: @escaping () -> String) { self.d(throwable: nil, tag: "Kermit", message: message) } func w(message: @escaping () -> String) { self.w(throwable: nil, tag: "Kermit", message: message) } func v(message: @escaping () -> String) { self.v(throwable: nil, tag: "Kermit", message: message) } func e(message: @escaping () -> String) { self.e(throwable: nil, tag: "Kermit", message: message) } func a(message: @escaping () -> String) { self.a(throwable: nil, tag: "Kermit", message: message) } }
But I think kermit should use the defaults, by default like before.
In the past, I was able to use the below in my iOS codebase:
but with the latest version it complains that I am missing the
tag
and thethrowable
. I created below extensions for nowBut I think kermit should use the defaults, by default like before.