Files
Dmitry BespalovandGitHub 8143aec754 feat: app strucutre and progress on address input
* Connected address input with qr code scanner

* structured the app

* renamed folders
2020-04-21 11:15:57 +00:00

29 lines
815 B
Swift

//
// Copyright © 2018 Gnosis Ltd. All rights reserved.
//
import Foundation
/// Logs messages to the debug console
final class ConsoleLogger: LogWriter {
private let formatter = LogFormatter()
func log(_ message: String,
level: LogLevel,
error: Error?,
file: StaticString,
line: UInt,
function: StaticString) {
let str = formatter.string(from: message,
logLevel: level,
error: error,
filename: String(describing: file),
method: String(describing: function),
line: line,
timestamp: Date())
print(str)
}
}