summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-10-20 20:51:59 +0000
committerMike Buland <eichlan@xagasoft.com>2007-10-20 20:51:59 +0000
commit6e106a2cc52e3857cbd55d67d54b4589f3425c51 (patch)
tree370dbdcd1f4c2b047b183387c052a339c25e8591 /src/logger.h
parentaddca63bba3ddaf212e44cdf16e95038b0a5bf3e (diff)
downloadlibbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.tar.gz
libbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.tar.bz2
libbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.tar.xz
libbu++-6e106a2cc52e3857cbd55d67d54b4589f3425c51.zip
Made the logger use a uint32_t for it's mask, no more negative confusion. Also
brought back the formula class with some cool twists, and added a basic stack class, very cute, fast, and little.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/logger.h b/src/logger.h
index f561e88..0e7d812 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -69,17 +69,18 @@ namespace Bu
69 virtual ~Logger(); 69 virtual ~Logger();
70 70
71 public: 71 public:
72 void log( int nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...); 72 void log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...);
73 73
74 void setFormat( const Bu::FString &str ); 74 void setFormat( const Bu::FString &str );
75 void setMask( int n ); 75 void setMask( uint32_t n );
76 void setLevel( int n ); 76 void setLevel( uint32_t n );
77 uint32_t getMask();
77 78
78 void hexDump( int nLevel, const char *sFile, const char *sFunction, int nLine, const void *pData, long nDataLen, const char *lpName ); 79 void hexDump( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const void *pData, long nDataLen, const char *lpName );
79 80
80 private: 81 private:
81 Bu::FString sLogFormat; 82 Bu::FString sLogFormat;
82 int nLevelMask; 83 uint32_t nLevelMask;
83 }; 84 };
84} 85}
85 86