@@ -27,8 +27,8 @@ pod 'PrettyLogger'
2727```
2828
2929## Usage
30- ### Log Messages
31- To print a message in console simply use any of the global functions:
30+ ### Print messages
31+ To print a message in the console you simply use any of the global functions:
3232``` swift
3333 logWarning (" This a warning!!" )
3434 logError (" This is showed as error" )
@@ -37,7 +37,7 @@ To print a message in console simply use any of the global functions:
3737 logDebug (" This is a debug message" )
3838 logTrace (" This is a trace info" )
3939```
40- This commands produces
40+ The previous example will print:
4141``` ogdl
424213:31:59.632 ◉ ⚠️⚠️⚠️ This a warning!! [File.swift:L109]
434313:31:59.639 ◉ ❌❌❌ This is showed as error [File.swift:L110]
@@ -46,15 +46,15 @@ This commands produces
464613:31:59.639 ◉ 🐛 This is a debug message [File.swift:L113]
474713:31:59.640 ◉ ✏️ This is a trace info [File.swift:L114]
4848```
49- ### Configuring Level
50- You can silent all logs or some depending on level by setting level on shared instance:
49+ ### Level
50+ You can silent all logs ( or some, depending on level) by setting the property ` level ` on the shared instance:
5151``` swift
5252PrettyLogger.shared .level = .all // To show all messages
5353PrettyLogger.shared .level = .disable // To silent logger
5454PrettyLogger.shared .level = .info // To show all message except debug & trace
5555```
56- The available levels are: disable, fatal, error, warn, info, debug, trace & all
57- ### Setting PrettyLogger as global framework:
56+ The available levels, in order, are: disable, fatal, error, warn, info, debug, trace & all
57+ ### Global framework
5858If you want to import all functions in your project without import PrettyLogger in every file you could use this directive in your AppDelegate:
5959``` swift
6060@_exported import PrettyLogger
0 commit comments