![]() |
IOS Streaming Browser 1.0
An IOS streaming browser to stream the display to others or to a projector
|
00001 #import <Foundation/Foundation.h> 00002 00003 #import "DDLog.h" 00004 00005 /** 00006 * Welcome to Cocoa Lumberjack! 00007 * 00008 * The Google Code page has a wealth of documentation if you have any questions. 00009 * http://code.google.com/p/cocoalumberjack/ 00010 * 00011 * If you're new to the project you may wish to read the "Getting Started" page. 00012 * http://code.google.com/p/cocoalumberjack/wiki/GettingStarted 00013 * 00014 * 00015 * This class provides a logger for Terminal output or Xcode console output, 00016 * depending on where you are running your code. 00017 * 00018 * As described in the "Getting Started" page, 00019 * the traditional NSLog() function directs it's output to two places: 00020 * 00021 * - Apple System Log (so it shows up in Console.app) 00022 * - StdErr (if stderr is a TTY, so log statements show up in Xcode console) 00023 * 00024 * To duplicate NSLog() functionality you can simply add this logger and an asl logger. 00025 * However, if you instead choose to use file logging (for faster performance), 00026 * you may choose to use only a file logger and a tty logger. 00027 **/ 00028 00029 00030 /** 00031 Use the DDLogger protocol 00032 **/ 00033 @interface DDTTYLogger : DDAbstractLogger <DDLogger> 00034 { 00035 /** 00036 00037 **/ 00038 BOOL isaTTY; 00039 00040 00041 /** 00042 00043 **/ 00044 NSDateFormatter *dateFormatter; 00045 00046 /** 00047 Not null terminated 00048 **/ 00049 char *app; 00050 00051 /** 00052 Not null terminated 00053 **/ 00054 char *pid; 00055 00056 /** 00057 00058 **/ 00059 size_t appLen; 00060 00061 /** 00062 process id length 00063 **/ 00064 size_t pidLen; 00065 } 00066 00067 /** 00068 Class method 00069 **/ 00070 + (DDTTYLogger *)sharedInstance; 00071 00072 // Inherited from DDAbstractLogger 00073 00074 // - (id <DDLogFormatter>)logFormatter; 00075 // - (void)setLogFormatter:(id <DDLogFormatter>)formatter; 00076 00077 @end