aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPLogger.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPLogger.h')
-rw-r--r--Source/SPLogger.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/SPLogger.h b/Source/SPLogger.h
index 09fbfd53..4d394b83 100644
--- a/Source/SPLogger.h
+++ b/Source/SPLogger.h
@@ -33,6 +33,11 @@
BOOL dumpLeaksOnTermination;
/**
+ * Remove old leak dumps on termination flag.
+ */
+ BOOL removeOldLeakDumpsOnTermination;
+
+ /**
* Log file initialized successfully flag.
*/
BOOL initializedSuccessfully;
@@ -50,10 +55,8 @@
*/
+ (SPLogger *)logger;
-/**
- * Tells the logger to dump leaks analysis upon app termination.
- */
-- (void)setDumpLeaksOnTermination;
+@property(readwrite, assign) BOOL dumpLeaksOnTermination;
+@property(readwrite, assign) BOOL removeOldLeakDumpsOnTermination;
/**
* Dumps the result of running leaks to the file '/tmp/sp.leaks.<pid>.tmp'.