Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pmbaty | 1 | #import <Foundation/Foundation.h> |
2 | #import <asl.h> |
||
3 | |||
4 | #import "DDLog.h" |
||
5 | |||
6 | /** |
||
7 | * Welcome to Cocoa Lumberjack! |
||
8 | * |
||
9 | * The project page has a wealth of documentation if you have any questions. |
||
10 | * https://github.com/CocoaLumberjack/CocoaLumberjack |
||
11 | * |
||
12 | * If you're new to the project you may wish to read the "Getting Started" wiki. |
||
13 | * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/GettingStarted |
||
14 | * |
||
15 | * |
||
16 | * This class provides a logger for the Apple System Log facility. |
||
17 | * |
||
18 | * As described in the "Getting Started" page, |
||
19 | * the traditional NSLog() function directs it's output to two places: |
||
20 | * |
||
21 | * - Apple System Log |
||
22 | * - StdErr (if stderr is a TTY) so log statements show up in Xcode console |
||
23 | * |
||
24 | * To duplicate NSLog() functionality you can simply add this logger and a tty logger. |
||
25 | * However, if you instead choose to use file logging (for faster performance), |
||
26 | * you may choose to use a file logger and a tty logger. |
||
27 | **/ |
||
28 | |||
29 | @interface DDASLLogger : DDAbstractLogger <DDLogger> |
||
30 | { |
||
31 | aslclient client; |
||
32 | } |
||
33 | |||
34 | + (instancetype)sharedInstance; |
||
35 | |||
36 | // Inherited from DDAbstractLogger |
||
37 | |||
38 | // - (id <DDLogFormatter>)logFormatter; |
||
39 | // - (void)setLogFormatter:(id <DDLogFormatter>)formatter; |
||
40 | |||
41 | @end |