summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-09 19:25:42 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-09 19:25:42 +0000
commitb4da565534b3826037576a6c44e40716b024f89a (patch)
treed04b7d3a6240dea2471f1d08fbdaf91dad651f58 /src/logger.h
parent62a1a445ab61fe31367054c094b7e0bb0495833d (diff)
downloadlibbu++-b4da565534b3826037576a6c44e40716b024f89a.tar.gz
libbu++-b4da565534b3826037576a6c44e40716b024f89a.tar.bz2
libbu++-b4da565534b3826037576a6c44e40716b024f89a.tar.xz
libbu++-b4da565534b3826037576a6c44e40716b024f89a.zip
The new logHexDump function seems to work just fine.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index f8e1692..f561e88 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -75,6 +75,8 @@ namespace Bu
75 void setMask( int n ); 75 void setMask( int n );
76 void setLevel( int n ); 76 void setLevel( int n );
77 77
78 void hexDump( int nLevel, const char *sFile, const char *sFunction, int nLine, const void *pData, long nDataLen, const char *lpName );
79
78 private: 80 private:
79 Bu::FString sLogFormat; 81 Bu::FString sLogFormat;
80 int nLevelMask; 82 int nLevelMask;
@@ -89,6 +91,9 @@ namespace Bu
89#define lineLog( nLevel, sFrmt, ...) \ 91#define lineLog( nLevel, sFrmt, ...) \
90 Bu::Logger::getInstance().log( nLevel, __FILE__, __PRETTY_FUNCTION__, __LINE__, sFrmt, ##__VA_ARGS__ ) 92 Bu::Logger::getInstance().log( nLevel, __FILE__, __PRETTY_FUNCTION__, __LINE__, sFrmt, ##__VA_ARGS__ )
91 93
94#define logHexDump( nLevel, pData, iSize, sName ) \
95 Bu::Logger::getInstance().hexDump( nLevel, __FILE__, __PRETTY_FUNCTION__, __LINE__, pData, iSize, sName )
96
92/** 97/**
93 * Set the Bu::Logger logging mask directly. See Bu::Logger::setMask for 98 * Set the Bu::Logger logging mask directly. See Bu::Logger::setMask for
94 * details. 99 * details.