Skip to content

Commit 061257a

Browse files
Update README.md
1 parent 9f37c6c commit 061257a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4242
13:31:59.632 ◉ ⚠️⚠️⚠️ This a warning!! [File.swift:L109]
4343
13:31:59.639 ◉ ❌❌❌ This is showed as error [File.swift:L110]
@@ -46,15 +46,15 @@ This commands produces
4646
13:31:59.639 ◉ 🐛 This is a debug message [File.swift:L113]
4747
13: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
5252
PrettyLogger.shared.level = .all //To show all messages
5353
PrettyLogger.shared.level = .disable //To silent logger
5454
PrettyLogger.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
5858
If 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

Comments
 (0)