aboutsummaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
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.