aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPLogger.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-04-25 16:47:34 +0000
committerstuconnolly <stuart02@gmail.com>2010-04-25 16:47:34 +0000
commited48d6800ff18def939d2ec8ce804cf54839067a (patch)
tree0a384b39134666cc954897a57133cc1227d3a5e1 /Source/SPLogger.h
parentfe6d4051cd47ee24c33775eec8624ebd7bb42160 (diff)
downloadsequelpro-ed48d6800ff18def939d2ec8ce804cf54839067a.tar.gz
sequelpro-ed48d6800ff18def939d2ec8ce804cf54839067a.tar.bz2
sequelpro-ed48d6800ff18def939d2ec8ce804cf54839067a.zip
Add the option to set whether or not old leaks logs are deleted.
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'.