DDASLLogger.h 1.2 KB

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