1 #ifndef CARMA_UTIL_PROGRAM_LOGGING_H
2 #define CARMA_UTIL_PROGRAM_LOGGING_H
11 #define CARMALOGINFO(statement) \
13 std::ostringstream _macroOs; \
14 _macroOs << statement; \
15 carma::util::programLogInfoIfPossible(_macroOs.str()); \
23 void programLogCritical( const ::std::string & msg );
24 void programLogCritical(
const char * msg );
26 void programLogError( const ::std::string & msg );
27 void programLogError(
const char * msg );
29 void programLogWarn( const ::std::string & msg );
30 void programLogWarn(
const char * msg );
32 void programLogNotice( const ::std::string & msg );
33 void programLogNotice(
const char * msg );
35 void programLogInfo( const ::std::string & msg );
36 void programLogInfo(
const char * msg );
38 void programLogDebug( const ::std::string & msg );
39 void programLogDebug(
const char * msg );
42 bool programLoggingIsPossible( );
44 void programLogCriticalIfPossible( const ::std::string & msg );
45 void programLogCriticalIfPossible(
const char * msg );
47 void programLogErrorIfPossible( const ::std::string & msg );
48 void programLogErrorIfPossible(
const char * msg );
50 void programLogWarnIfPossible( const ::std::string & msg );
51 void programLogWarnIfPossible(
const char * msg );
53 void programLogNoticeIfPossible( const ::std::string & msg );
54 void programLogNoticeIfPossible(
const char * msg );
56 void programLogInfoIfPossible( const ::std::string & msg );
57 void programLogInfoIfPossible(
const char * msg );
59 void programLogDebugIfPossible( const ::std::string & msg );
60 void programLogDebugIfPossible(
const char * msg );