diff options
Diffstat (limited to 'Source/SPLogger.h')
-rw-r--r-- | Source/SPLogger.h | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/Source/SPLogger.h b/Source/SPLogger.h index 4d394b83..ac9b9a04 100644 --- a/Source/SPLogger.h +++ b/Source/SPLogger.h @@ -27,53 +27,13 @@ @interface SPLogger : NSObject { - /** - * Dump leaks on termination flag. - */ - BOOL dumpLeaksOnTermination; - - /** - * Remove old leak dumps on termination flag. - */ - BOOL removeOldLeakDumpsOnTermination; - - /** - * Log file initialized successfully flag. - */ BOOL initializedSuccessfully; - - /** - * Log file handle. - */ NSFileHandle *logFileHandle; } -/** - * Returns the shared logger. - * - * @return The logger instance - */ + (SPLogger *)logger; -@property(readwrite, assign) BOOL dumpLeaksOnTermination; -@property(readwrite, assign) BOOL removeOldLeakDumpsOnTermination; - -/** - * Dumps the result of running leaks to the file '/tmp/sp.leaks.<pid>.tmp'. - * - * Note, that to enable useful output, make sure the following environment variables are set to YES: - * - * MallocStackLogging - * MallocStackLoggingNoCompact - * - * Also note that the application may take a while to terminate if it has been running for a significant - * period of time or has been handling large amounts of data. - */ -- (void)dumpLeaks; - -/** - * Logs the supplied string to the log file. - */ -- (void)log:(NSString *)theString, ...; +- (void) outputTimeString; +- (void) log:(NSString *)theString, ...; @end |