Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shial4 authored Oct 12, 2017
1 parent 50519a2 commit a322ed7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@ SLLog.w(Date())
SLLog.e([0.1,1,"A",Date()])
```

## 4 SLLogConsole
### 4 Providers

SLLog can have custom providers. To add your own provider
```swift
struct MySLLogProvider: LogProvider {}
SLLog.addProvider(MySLLogProvider())
```
can you can use `LogProvider` build in method send. To send your log via SLLog.

## 5 SLLogConsole
Default console log:
```swift
isDebug: Bool = true,
Expand Down Expand Up @@ -126,6 +135,11 @@ SLLog.LogType.debug:LogColor("92m", "✅"),
SLLog.LogType.warning:LogColor("93mm", "⚠️"),
SLLog.LogType.error:LogColor("91m", "⛔️"),
```
## 5 SLLogFile
SLLogFile save logs to files which are create on daily basis.
File names are as follows: `"yyyy-MM-dd"`. Created under `:yuorPath/sllogs` with extension `.log`
Default `maxFilesCount` is set to `3` wich means logger stores 3 files at a time.
1 file = 1 day logs


## ⭐ Contributing
Expand Down

0 comments on commit a322ed7

Please sign in to comment.