diff options
author | Mattes D <github@xoft.cz> | 2014-08-15 07:20:37 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-15 07:20:37 +0200 |
commit | e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1 (patch) | |
tree | 8a4f77b7471841910afbfdf7ebabbba68886c9b1 /src/LoggerListeners.h | |
parent | CheckBasicStyle checks the src folder as well. (diff) | |
parent | Removed an unneeded cast. (diff) | |
download | cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.tar cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.tar.gz cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.tar.bz2 cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.tar.lz cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.tar.xz cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.tar.zst cuberite-e553d58eaf4dfdc56ebb1e3155f8b4dd2a33d7f1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LoggerListeners.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/LoggerListeners.h b/src/LoggerListeners.h new file mode 100644 index 000000000..d300184b1 --- /dev/null +++ b/src/LoggerListeners.h @@ -0,0 +1,31 @@ + +#include "Logger.h" + + + + + +class cFileListener + : public cLogger::cListener +{ +public: + + cFileListener(); + cFileListener(AString a_Filename); + + virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override; + +private: + + cFile m_File; +}; + + + + + +cLogger::cListener * MakeConsoleListener(); + + + + |