Skip to content

Commit 0395889

Browse files
committed
Update README.md, bump podspec to 0.1.0
1 parent c868928 commit 0395889

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

QuickELogger.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'QuickELogger'
3-
spec.version = '0.0.1'
3+
spec.version = '0.1.0'
44
spec.summary = 'A quick and simple way to log messages to disk in your iPhone or iPad app'
55
spec.homepage = 'https://github.com/rbaumbach/Quick-E-Logger'
66
spec.license = { :type => 'MIT', :file => 'MIT-LICENSE.txt' }

README.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ A quick and simple way to log messages to disk in your iPhone or iPad app.
1919

2020
## How To
2121

22-
* Create an instance of `QuickELogger`, and then it's as simple as calling `log(:message:type)`.
22+
* Swift -> Create an instance of `QuickELogger`, and then it's as simple as calling `log(:message:type)`.
23+
* Objective-C -> Create an instance of `QuickELoggerObjC`, and calling `logWithMessage:type:`
2324
* This logger has the following (pretty standard) log types: `verbose, info, debug, warn, error`.
2425

2526
Note: The file is saved in the `/Documents` directory.
@@ -28,12 +29,24 @@ Additional note: By default the filename is `QuickELogger.json`. You can specif
2829

2930
### Example Usage
3031

32+
Swift
33+
3134
```swift
3235
import QuickELogger
3336

3437
let logger = QuickELogger()
3538

36-
logger(message: "Black beans > Pinto beans", type: .info)
39+
logger(message: "Pinto beans > Black beans", type: .info)
40+
```
41+
42+
Objective-C
43+
44+
```objective-c
45+
@import QuickELogger;
46+
47+
QuickELoggerObjC *logger = [[QuickELoggerObjC alloc] init];
48+
49+
[logger logWithMessage:@"Pinto beans > Black beans" type:ObjCLogTypeInfo];
3750
```
3851
3952
What happens at `/Documents/QuickELogger.json`:
@@ -43,7 +56,7 @@ What happens at `/Documents/QuickELogger.json`:
4356
{
4457
"timeStamp" : "2019-10-27T02:32:57Z",
4558
"id" : "41593EA2-9D4D-4406-839B-2298AD7FA2E3",
46-
"message" : "Black beans > Pinto beans",
59+
"message" : "Pinto beans > Black beans",
4760
"type" : "info"
4861
}
4962
]

0 commit comments

Comments
 (0)