@@ -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
2526Note: 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
3235import QuickELogger
3336
3437let 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
3952What 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