aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Attila Molnar2017-03-05 21:32:11 +0100
committerGravatar GitHub2017-03-05 21:32:11 +0100
commit5583d8dc5ff202d411d7985b6bbfb240beeacddd (patch)
tree5e698c3b99e9c3addf516a2dcd7b3b2686fc15cb /include
parentMerge pull request #1287 from SaberUK/master+filter-docs (diff)
parentAllow <log> tags to specify how often logs should be flushed. (diff)
Merge pull request #1292 from SaberUK/master+flush
Allow <log> tags to specify how often logs should be flushed.
Diffstat (limited to 'include')
-rw-r--r--include/logger.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/logger.h b/include/logger.h
index c56859a62..5d4a80d9f 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -41,14 +41,18 @@ class CoreExport FileWriter
*/
FILE* log;
+ /** The number of write operations after which we should flush.
+ */
+ unsigned int flush;
+
/** Number of write operations that have occured
*/
- int writeops;
+ unsigned int writeops;
public:
/** The constructor takes an already opened logfile.
*/
- FileWriter(FILE* logfile);
+ FileWriter(FILE* logfile, unsigned int flushcount);
/** Write one or more preformatted log lines.
* If the data cannot be written immediately,