22 #ifndef OTAWA_UTIL_TRACE_H
23 #define OTAWA_UTIL_TRACE_H
25 #include <elm/string.h>
26 #include <elm/io/OutStream.h>
27 #include <elm/io/Output.h>
34 extern const Level
L1;
35 extern const Level
L2;
36 extern const Level
L3;
37 extern const Level
L4;
38 extern const Level
L5;
39 extern const Level
L6;
40 extern const Level
L7;
41 extern const Level
L8;
42 extern const Level
L9;
53 virtual int write (
const char *buffer,
int size) {
return 0;}
70 setStream(elm::io::OutStream::null);
90 #endif // OTAWA_UTIL_TRACE_H
elm::io::OutStream & _stream
Definition: Trace.h:62
elm::io::Output & operator<<(elm::io::Output &out, Address addr)
Definition: base.cpp:188
NullStream null_stream
Definition: util_Trace.cpp:36
Trace(elm::io::OutStream &stream, int level, elm::String module_name)
Definition: Trace.h:65
Level(int l)
Definition: Trace.h:47
elm::String _module_name
Definition: Trace.h:61
int _level
Definition: Trace.h:60
virtual int write(const char *buffer, int size)
Definition: Trace.h:53
int _level
Definition: Trace.h:49
void checkLevel(int level)
Definition: Trace.h:73
int flush(void)
Definition: Trace.h:54