15 #ifndef DONT_USE_STREAMLOG
21 #include "logstream.h"
23 #include "loglevels.h"
26 #define streamlog_level( MLEVEL ) ( streamlog::out.would_write< streamlog::MLEVEL >() )
29 #define streamlog_out( MLEVEL ) if(streamlog::out.write< streamlog::MLEVEL >() ) streamlog::out()
32 #define streamlog_message( MLEVEL , CODE_BLOCK , OUT_MESSAGE)\
33 if( streamlog::out.write< streamlog::MLEVEL >() ) { \
35 streamlog::out() << OUT_MESSAGE }
38 #define streamlog_out_T( MLEVEL ) if(streamlog::out.template write< streamlog::MLEVEL >() ) streamlog::out()
40 #define streamlog_message_T( MLEVEL , CODE_BLOCK , OUT_MESSAGE)\
41 if( streamlog::out.template write< streamlog::MLEVEL >() ) { \
43 streamlog::out() << OUT_MESSAGE }
47 #define streamlog_out( MLEVEL ) std::cout
49 #define streamlog_message( MLEVEL , CODE_BLOCK , OUT_MESSAGE)\
52 std::out << OUT_MESSAGE }