26#include <boost/format.hpp>
30 this->log.open(filename.c_str());
43 for (
unsigned int i = 0; i < len; i++)
45 log << boost::format(
" %02X") % (int)buf[i];
57 for (
unsigned int i = 0; i < len; i++)
59 log << boost::format(
" %02X") % (int)buf[i];
69 log << message << std::endl;
void logRead(unsigned char *buf, unsigned int len)
void logText(std::string message)
BinaryLogger(std::string filename)
void logWrite(unsigned char *buf, unsigned int len)