101 explicit Tracer(std::ostream* o = NULL)
119 : ostr_(other.ostr_),
120 trace_level_(other.trace_level_),
121 cur_level_(other.cur_level_),
129 trace_level_ = other.trace_level_;
130 cur_level_ = other.cur_level_;
131 fatal_ = other.fatal_;
136 template <
typename T_MSG>
137 Tracer& operator<<(T_MSG t) {
138 if (cur_level_ <= trace_level_) {
144 Tracer& operator<<(std::ostream& (*f)(std::ostream&)) {
145 if (cur_level_ <= trace_level_) {
159 return FlushBuffer();
163 if (cur_level_ <= trace_level_) {
164 (*ostr_) << std::endl;
171 template <
typename T_MSG>
172 Tracer& operator<<(T_MSG t) {
176 int GetTraceLevel() {
184 void SetTraceLevel(
int l) {
189 void SetCurrentLevel(
int l) {