diff options
author | Mattes D <github@xoft.cz> | 2015-09-16 09:12:56 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-09-16 09:12:56 +0200 |
commit | d041057da239d6dca02306849bd62973f3a51c62 (patch) | |
tree | 82d3aaa2905d360779ea472bc3baf91f8539758b /src/LoggerListeners.h | |
parent | Merge pull request #2473 from cuberite/APIDumpRename (diff) | |
parent | Increase robustness of the logging subsystem (diff) | |
download | cuberite-d041057da239d6dca02306849bd62973f3a51c62.tar cuberite-d041057da239d6dca02306849bd62973f3a51c62.tar.gz cuberite-d041057da239d6dca02306849bd62973f3a51c62.tar.bz2 cuberite-d041057da239d6dca02306849bd62973f3a51c62.tar.lz cuberite-d041057da239d6dca02306849bd62973f3a51c62.tar.xz cuberite-d041057da239d6dca02306849bd62973f3a51c62.tar.zst cuberite-d041057da239d6dca02306849bd62973f3a51c62.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LoggerListeners.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/LoggerListeners.h b/src/LoggerListeners.h index a7f9a35a5..3d5628caa 100644 --- a/src/LoggerListeners.h +++ b/src/LoggerListeners.h @@ -2,30 +2,8 @@ #include "Logger.h" #include "OSSupport/File.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(bool a_IsService); +std::unique_ptr<cLogger::cListener> MakeConsoleListener(bool a_IsService); +std::pair<bool, std::unique_ptr<cLogger::cListener>> MakeFileListener(); |