Skip to content

Instantly share code, notes, and snippets.

@dgyesbreghs
Created March 26, 2018 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgyesbreghs/ebfaedf04e1ee0dbde425424e3ced639 to your computer and use it in GitHub Desktop.
Save dgyesbreghs/ebfaedf04e1ee0dbde425424e3ced639 to your computer and use it in GitHub Desktop.
//
// 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