diff --git a/EPLogger.podspec b/EPLogger.podspec index f5a5f5e..00558dd 100755 --- a/EPLogger.podspec +++ b/EPLogger.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'EPLogger' - s.version = '1.3.5' + s.version = '1.3.6' s.summary = 'Just simple Logger' # This description is used to generate tags and improve search results. diff --git a/EPLogger.xcodeproj/project.pbxproj b/EPLogger.xcodeproj/project.pbxproj index 9765717..e34215c 100644 --- a/EPLogger.xcodeproj/project.pbxproj +++ b/EPLogger.xcodeproj/project.pbxproj @@ -289,7 +289,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.3.5; + MARKETING_VERSION = 1.3.6; PRODUCT_BUNDLE_IDENTIFIER = com.elonparks.EPLogger; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; @@ -314,7 +314,7 @@ "@executable_path/Frameworks", "@loader_path/Frameworks", ); - MARKETING_VERSION = 1.3.5; + MARKETING_VERSION = 1.3.6; PRODUCT_BUNDLE_IDENTIFIER = com.elonparks.EPLogger; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; diff --git a/EPLogger/Classes/EPLogger.swift b/EPLogger/Classes/EPLogger.swift index 233b25e..315cb48 100755 --- a/EPLogger/Classes/EPLogger.swift +++ b/EPLogger/Classes/EPLogger.swift @@ -177,7 +177,7 @@ public struct Log { /// // WARNING: This is warning /// // ERROR: This is error /// ``` - public static func congfig( + public static func config( level: Log.Level? = nil, customLevelHeader: [Log.Level : String]? = nil, formatType: Log.FormatType? = nil, diff --git a/Example/EPLogger/AppDelegate.swift b/Example/EPLogger/AppDelegate.swift index 2ef2727..e853753 100755 --- a/Example/EPLogger/AppDelegate.swift +++ b/Example/EPLogger/AppDelegate.swift @@ -20,7 +20,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Set log level. default is verbose - Log.congfig(level: .verbose, dateFormat: "HH:mm:ss.SSS") + Log.config(level: .verbose, dateFormat: "HH:mm:ss.SSS") return true } diff --git a/Example/EPLogger/ViewController.swift b/Example/EPLogger/ViewController.swift index b3b03eb..1ac33a2 100755 --- a/Example/EPLogger/ViewController.swift +++ b/Example/EPLogger/ViewController.swift @@ -67,23 +67,23 @@ final class ViewController: UIViewController { private func changeFormat() { print("\n - change format") - Log.congfig(formatType: .short) + Log.config(formatType: .short) Log.verbose("short") - Log.congfig(formatType: .medium) + Log.config(formatType: .medium) Log.debug("medium") - Log.congfig(formatType: .long) + Log.config(formatType: .long) Log.info("long") - Log.congfig(formatType: .full) + Log.config(formatType: .full) Log.warning("full") } private func changeLogLevelHeader() { - Log.congfig(formatType: .short) + Log.config(formatType: .short) print("\n - change log level header") - Log.congfig(customLevelHeader: [ + Log.config(customLevelHeader: [ .verbose: "VERBOSE", .debug: "DEBUG" ]) @@ -96,12 +96,12 @@ final class ViewController: UIViewController { private func changeSeparator() { print("\n - change separator") - Log.congfig(separator: ": ") + Log.config(separator: ": ") Log.info("Hello") Log.warning("world!") print("") - Log.congfig( + Log.config( level: .debug, formatType: .medium, separator: " -> " diff --git a/README.md b/README.md index 9ac41c2..b4d543d 100755 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Set log level. default is verbose - Log.congfig(level: .verbose) + Log.config(level: .verbose) Log.verbose("This is verbose") Log.debug("This is debug") Log.info("This is info")