mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-31 07:09:41 +02:00
Some work toward Issue 27 and Issue 319
This commit is contained in:
parent
fea12827d4
commit
f974d8d680
74 changed files with 4057 additions and 3756 deletions
|
@ -19,8 +19,11 @@
|
|||
#include "ILogOutputter.h"
|
||||
#include "CString.h"
|
||||
#include "stddeque.h"
|
||||
#include "CThread.h"
|
||||
|
||||
#include <list>
|
||||
#include <fstream>
|
||||
|
||||
//! Stop traversing log chain outputter
|
||||
/*!
|
||||
This outputter performs no output and returns false from \c write(),
|
||||
|
@ -37,7 +40,6 @@ public:
|
|||
virtual void close();
|
||||
virtual void show(bool showIfEmpty);
|
||||
virtual bool write(ELevel level, const char* message);
|
||||
virtual const char* getNewline() const;
|
||||
};
|
||||
|
||||
//! Write log to console
|
||||
|
@ -55,7 +57,7 @@ public:
|
|||
virtual void close();
|
||||
virtual void show(bool showIfEmpty);
|
||||
virtual bool write(ELevel level, const char* message);
|
||||
virtual const char* getNewline() const;
|
||||
virtual void flush();
|
||||
};
|
||||
|
||||
//! Write log to file
|
||||
|
@ -74,7 +76,6 @@ public:
|
|||
virtual void close();
|
||||
virtual void show(bool showIfEmpty);
|
||||
virtual bool write(ELevel level, const char* message);
|
||||
virtual const char* getNewline() const;
|
||||
private:
|
||||
std::ofstream m_handle;
|
||||
};
|
||||
|
@ -93,7 +94,6 @@ public:
|
|||
virtual void close();
|
||||
virtual void show(bool showIfEmpty);
|
||||
virtual bool write(ELevel level, const char* message);
|
||||
virtual const char* getNewline() const;
|
||||
};
|
||||
|
||||
//! Write log to system log only
|
||||
|
@ -144,8 +144,6 @@ public:
|
|||
virtual void close();
|
||||
virtual void show(bool showIfEmpty);
|
||||
virtual bool write(ELevel level, const char* message);
|
||||
virtual const char* getNewline() const;
|
||||
|
||||
private:
|
||||
UInt32 m_maxBufferSize;
|
||||
CBuffer m_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue