Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

typo in LogSettings #25

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dotzu/LogLevel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension LogLevel {
var logColorConsole: String {
switch self {
case .verbose: return "◽️"
case .info: return "🔷"
case .info: return ""
case .warning: return "⚠️"
case .error: return "❌"
}
Expand Down
4 changes: 2 additions & 2 deletions Dotzu/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public func print(_ items: Any...) {

public class Logger: LogGenerator {

static let shared = Logger()
public static let shared = Logger()
public var enable: Bool = false
private let store = StoreManager<Log>(store: .log)
private let queue = DispatchQueue(label: "logprint.log.queue")

var enable: Bool = true

public static func verbose(_ items: Any..., file: String = #file, function: String = #function, line: Int = #line) {
handleLog(items, level: .verbose, file: file, function: function, line: line)
Expand Down
2 changes: 1 addition & 1 deletion Dotzu/LogsSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LogsSettings {
}
var fileInfo: Bool {
didSet {
UserDefaults.standard.set(fileInfo, forKey: "fileInfoDsisplayed")
UserDefaults.standard.set(fileInfo, forKey: "fileInfoDisplayed")
}
}
var date: Bool {
Expand Down
7 changes: 7 additions & 0 deletions DotzuObjc/DotzuObjc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import UIKit
import Dotzu

public class LoggerObjc: NSObject {

public static func disable(){
Logger.shared.enable = false
}
public static func enable(){
Logger.shared.enable = true
}
public static func verbose(_ items: String, file: String = #file, function: String = #function, line: Int = #line) {
Logger.verbose(items, file: file, function: function, line: line)
}
Expand Down