|
Last change
on this file since 676 was
511,
checked in by Maciej Komosinski, 9 years ago
|
|
Improved handling of multiline messages by loggers
|
-
Property svn:eol-style set to
native
|
|
File size:
642 bytes
|
| Rev | Line | |
|---|
| [286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
|---|
| 2 | // Copyright (C) 1999-2015 Maciej Komosinski and Szymon Ulatowski. |
|---|
| 3 | // See LICENSE.txt for details. |
|---|
| [109] | 4 | |
|---|
| [375] | 5 | #ifndef _STDOUT_LOGGER_H_ |
|---|
| 6 | #define _STDOUT_LOGGER_H_ |
|---|
| [109] | 7 | |
|---|
| [375] | 8 | #include "loggers.h" |
|---|
| [382] | 9 | #include <common/virtfile/virtfile.h> |
|---|
| [109] | 10 | |
|---|
| [375] | 11 | class LoggerToStdout : public LoggerBase |
|---|
| [109] | 12 | { |
|---|
| [336] | 13 | VirtFILE *file; |
|---|
| 14 | public: |
|---|
| [397] | 15 | LoggerToStdout(int opts = 0, VirtFILE *_file = NULL); |
|---|
| [511] | 16 | void handleSingleLine(const char *obj, const char *method, int level, const char *msg); |
|---|
| [397] | 17 | |
|---|
| 18 | static const char* default_log_format[]; |
|---|
| 19 | static const char** default_log_level[]; |
|---|
| 20 | const char** log_level; |
|---|
| 21 | const char* log_format; |
|---|
| [109] | 22 | }; |
|---|
| 23 | |
|---|
| 24 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.