26 #include <libopenraw/debug.h> 32 int Trace::debugLevel = NOTICE;
34 void log(debug_level level,
const char *fmt, ...)
36 if (level > Trace::debugLevel) {
42 va_start(marker, fmt);
43 vfprintf(stderr, fmt, marker);
48 void Trace::setDebugLevel(debug_level lvl)
53 void Trace::print(
int i)
55 std::cerr << i <<
" ";
58 Trace & Trace::operator<<(
int i)
60 if (m_level <= debugLevel) {
66 Trace & Trace::operator<<(
const char * s)
68 if (m_level <= debugLevel) {
74 Trace & Trace::operator<<(
void *p)
76 if (m_level <= debugLevel) {
82 Trace & Trace::operator<<(
const std::string & s)
84 if (m_level <= debugLevel) {