2
* libopenraw - trace.cpp
4
* Copyright (C) 2006-2007, 2010 Hubert Figuiere
6
* This library is free software: you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation, either version 3 of
9
* the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library. If not, see
18
* <http://www.gnu.org/licenses/>.
30
int Trace::debugLevel = NOTICE;
32
void Trace::setDebugLevel(debug_level lvl)
37
void Trace::print(int i)
39
std::cerr << i << " ";
42
Trace & Trace::operator<<(int i)
44
if (m_level <= debugLevel) {
50
Trace & Trace::operator<<(const char * s)
52
if (m_level <= debugLevel) {
58
Trace & Trace::operator<<(void *p)
60
if (m_level <= debugLevel) {
66
Trace & Trace::operator<<(const std::string & s)
68
if (m_level <= debugLevel) {