diff options
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string> #include <fstream> #include "threads.h" +#include "irrlichttypes.h" class ILogOutput; @@ -38,12 +39,16 @@ enum LogLevel { LL_MAX, }; +typedef u8 LogLevelMask; +#define LOGLEVEL_TO_MASKLEVEL(x) (1 << x) + class Logger { public: void addOutput(ILogOutput *out); void addOutput(ILogOutput *out, LogLevel lev); + void addOutputMasked(ILogOutput *out, LogLevelMask mask); void addOutputMaxLevel(ILogOutput *out, LogLevel lev); - void removeOutput(ILogOutput *out); + LogLevelMask removeOutput(ILogOutput *out); void setLevelSilenced(LogLevel lev, bool silenced); void registerThread(const std::string &name); |