@@ -19,7 +19,8 @@ A quick and simple way to log messages to disk in your iPhone or iPad app.
19
19
20
20
## How To
21
21
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: `
23
24
* This logger has the following (pretty standard) log types: ` verbose, info, debug, warn, error ` .
24
25
25
26
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
28
29
29
30
### Example Usage
30
31
32
+ Swift
33
+
31
34
``` swift
32
35
import QuickELogger
33
36
34
37
let logger = QuickELogger ()
35
38
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 ] ;
37
50
```
38
51
39
52
What happens at `/Documents/QuickELogger.json`:
@@ -43,7 +56,7 @@ What happens at `/Documents/QuickELogger.json`:
43
56
{
44
57
"timeStamp" : "2019-10-27T02:32:57Z",
45
58
"id" : "41593EA2-9D4D-4406-839B-2298AD7FA2E3",
46
- "message" : "Black beans > Pinto beans",
59
+ "message" : "Pinto beans > Black beans",
47
60
"type" : "info"
48
61
}
49
62
]
0 commit comments