Ignore:
Timestamp:
01/08/2007 00:18:50 (5 years ago)
Author:
chris
Message:

Replace almost all calls to syslog() with logging framework. (merges [1783])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/common/Logging.h

    r1603 r1784  
    1111#define LOGGING__H 
    1212 
     13#include <iomanip> 
    1314#include <sstream> 
    1415#include <vector> 
     
    4243        #define BOX_TRACE(stuff)   BOX_LOG(Log::TRACE, stuff) 
    4344#endif 
     45 
     46#define BOX_FORMAT_ACCOUNT(accno) \ 
     47        std::hex << \ 
     48        std::showbase << \ 
     49        std::internal << \ 
     50        std::setw(8) << \ 
     51        std::setfill('0') << \ 
     52        (accno) 
     53 
     54#define BOX_FORMAT_OBJECTID(objectid) \ 
     55        std::hex << \ 
     56        std::showbase << \ 
     57        (objectid) 
    4458 
    4559#undef ERROR 
Note: See TracChangeset for help on using the changeset viewer.