This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Rupérez
committed
Nov 16, 2017
1 parent
5529e23
commit 062b827
Showing
82 changed files
with
7,804 additions
and
1,190 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// LogManager.swift | ||
// Created by Alex Rupérez on 16/11/17. | ||
// Copyright © 2017 Intelygenz. All rights reserved. | ||
|
||
import XCGLogger | ||
|
||
let log: XCGLogger = { | ||
let log = XCGLogger(identifier: "advancedLogger", includeDefaultDestinations: false) | ||
log.levelDescriptions[.verbose] = "💜" | ||
log.levelDescriptions[.debug] = "💚" | ||
log.levelDescriptions[.info] = "💙" | ||
log.levelDescriptions[.warning] = "💛" | ||
log.levelDescriptions[.error] = "❤️" | ||
log.levelDescriptions[.severe] = "🖤" | ||
|
||
let consoleDestination = ConsoleDestination(identifier: "advancedLogger.consoleDestination") | ||
#if DEBUG | ||
consoleDestination.outputLevel = .debug | ||
#else | ||
consoleDestination.outputLevel = .severe | ||
#endif | ||
consoleDestination.showFunctionName = false | ||
consoleDestination.showFileName = false | ||
consoleDestination.showLineNumber = false | ||
log.add(destination: consoleDestination) | ||
|
||
return log | ||
}() |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ use_frameworks! | |
inhibit_all_warnings! | ||
|
||
pod 'SwiftLint' | ||
pod 'XCGLogger' | ||
|
||
target 'Archit' do | ||
|
||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.