diff options
Diffstat (limited to 'rbutil/rbutilqt/logger/include/ConsoleAppender.h')
-rw-r--r-- | rbutil/rbutilqt/logger/include/ConsoleAppender.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/logger/include/ConsoleAppender.h b/rbutil/rbutilqt/logger/include/ConsoleAppender.h new file mode 100644 index 0000000000..64ef2e7a19 --- /dev/null +++ b/rbutil/rbutilqt/logger/include/ConsoleAppender.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com) | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU Lesser General Public License version 2.1 | ||
6 | as published by the Free Software Foundation and appearing in the file | ||
7 | LICENSE.LGPL included in the packaging of this file. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU Lesser General Public License for more details. | ||
13 | */ | ||
14 | #ifndef CONSOLEAPPENDER_H | ||
15 | #define CONSOLEAPPENDER_H | ||
16 | |||
17 | #include "CuteLogger_global.h" | ||
18 | #include <AbstractStringAppender.h> | ||
19 | |||
20 | |||
21 | class CUTELOGGERSHARED_EXPORT ConsoleAppender : public AbstractStringAppender | ||
22 | { | ||
23 | public: | ||
24 | ConsoleAppender(); | ||
25 | virtual QString format() const; | ||
26 | void ignoreEnvironmentPattern(bool ignore); | ||
27 | |||
28 | protected: | ||
29 | virtual void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line, | ||
30 | const char* function, const QString& category, const QString& message); | ||
31 | |||
32 | private: | ||
33 | bool m_ignoreEnvPattern; | ||
34 | }; | ||
35 | |||
36 | #endif // CONSOLEAPPENDER_H | ||