Commit b44973b5 by Demid Merzlyakov

Added Crashlytics logging in DEBUG

parent f660fd7d
......@@ -7,7 +7,7 @@
//
import Foundation
import FirebaseCrashlytics
final class Logger {
public var minLogLevel: LogLevel
......@@ -36,6 +36,7 @@ final class Logger {
guard level.rawValue >= minLogLevel.rawValue else {
return
}
Crashlytics.crashlytics().log(message)
let prefix = "\(Logger.prefix) \(componentName) [\(logLevelString(level: level))]"
if message.count < maxCharsPerMessage {
NSLog("\(prefix): \(message)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment