mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
* Connected address input with qr code scanner * structured the app * renamed folders
29 lines
815 B
Swift
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)
|
|
}
|
|
|
|
}
|