Skip to content

Commit

Permalink
Merge pull request #13 from konrado0905/patch-1
Browse files Browse the repository at this point in the history
Add info about color change for Mac
  • Loading branch information
Esqarrouth committed Jan 4, 2016
2 parents e4f1578 + e686f1d commit ff0e17e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,26 @@ You do not need the extension of the file.
![demo](http://i.imgur.com/hQWOYit.png)
####Add Custom Colors
For iOS:
```swift
QorumLogs.colorsForLogLevels[0] = UIColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1)
QorumLogs.colorsForLogLevels[1] = UIColor(red: 255/255, green: 20/255, blue: 147/255, alpha: 1)
```
For Mac:
```swift
QorumLogs.colorsForLogLevels[0] = NSColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1)
QorumLogs.colorsForLogLevels[1] = NSColor(red: 255/255, green: 20/255, blue: 147/255, alpha: 1)
```
For Mac and iOS:
```swift
QorumLogs.colorsForLogLevels[0] = QLColor(red: 255/255, green: 255/255, blue: 0/255, alpha: 1)
QorumLogs.colorsForLogLevels[1] = QLColor(red: 255/255, green: 20/255, blue: 147/255, alpha: 1)
```
```swift
QL1("Mylog")
```
![demo](http://i.imgur.com/yTmNnU6.png)
Expand Down

0 comments on commit ff0e17e

Please sign in to comment.