diff options
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r-- | lib/common/Logging.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h index aea488a5..e87d1d4f 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -10,6 +10,7 @@ #ifndef LOGGING__H #define LOGGING__H +#include <iomanip> #include <sstream> #include <vector> @@ -42,6 +43,19 @@ #define BOX_TRACE(stuff) BOX_LOG(Log::TRACE, stuff) #endif +#define BOX_FORMAT_ACCOUNT(accno) \ + std::hex << \ + std::showbase << \ + std::internal << \ + std::setw(8) << \ + std::setfill('0') << \ + (accno) + +#define BOX_FORMAT_OBJECTID(objectid) \ + std::hex << \ + std::showbase << \ + (objectid) + #undef ERROR namespace Log |