diff options
author | Michal Srb <michalsrb@gmail.com> | 2015-04-10 16:52:26 +0300 |
---|---|---|
committer | Michal Srb <michalsrb@gmail.com> | 2015-04-10 16:52:26 +0300 |
commit | 2defd78d053a130ba1152d1658806c0b493ba703 (patch) | |
tree | 8f71aa111aa81821fce12ad626bbd386cfd799ae /common/rfb/LogWriter.h | |
parent | 76cf5b34f893755594cbea2d90ed638083dea2f2 (diff) | |
download | tigervnc-2defd78d053a130ba1152d1658806c0b493ba703.tar.gz tigervnc-2defd78d053a130ba1152d1658806c0b493ba703.zip |
Expose log levels from LogWriter.
Diffstat (limited to 'common/rfb/LogWriter.h')
-rw-r--r-- | common/rfb/LogWriter.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/common/rfb/LogWriter.h b/common/rfb/LogWriter.h index c3bb2b06..69b530ca 100644 --- a/common/rfb/LogWriter.h +++ b/common/rfb/LogWriter.h @@ -72,10 +72,15 @@ namespace rfb { } } - DEF_LOGFUNCTION(error, 0) - DEF_LOGFUNCTION(status, 10) - DEF_LOGFUNCTION(info, 30) - DEF_LOGFUNCTION(debug, 100) + static const int LEVEL_ERROR = 0; + static const int LEVEL_STATUS = 10; + static const int LEVEL_INFO = 30; + static const int LEVEL_DEBUG = 100; + + DEF_LOGFUNCTION(error, LEVEL_ERROR) + DEF_LOGFUNCTION(status, LEVEL_STATUS) + DEF_LOGFUNCTION(info, LEVEL_INFO) + DEF_LOGFUNCTION(debug, LEVEL_DEBUG) // -=- DIAGNOSTIC & HELPER ROUTINES |