Created
March 26, 2018 12:46
-
-
Save dgyesbreghs/ebfaedf04e1ee0dbde425424e3ced639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Logging.swift | |
// | |
// Created by Dylan Gyesbreghs on 01/07/2017. | |
// Copyright © 2017 Dylan Gyesbreghs. All rights reserved. | |
// | |
import Foundation | |
public func leaveBreadcrumb(_ breadcrumb: Any, _ function: String = #function, _ lineNumber: Int = #line) { | |
print("🍞 [\(function):\(lineNumber)]: \(breadcrumb)") | |
} | |
public func leaveError(_ error: Any, _ function: String = #function, _ lineNumber: Int = #line) { | |
print("❌ [\(function):\(lineNumber)]: \(error)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment