Go to the documentation of this file.
28#define G_LOG_IMP( expr , severity ) do { if(G::LogOutput::Instance::at(severity)) { auto log_stream = G::LogOutput::Instance::start((severity),__FILE__,__LINE__) ; log_stream << expr ; G::LogOutput::Instance::output(log_stream) ; } } while(0)
29#define G_LOG_IMP_IF( cond , expr , severity ) do { if(G::LogOutput::Instance::at(severity)&&(cond)) { auto log_stream = G::LogOutput::Instance::start((severity),__FILE__,__LINE__) ; log_stream << expr ; G::LogOutput::Instance::output(log_stream) ; } } while(0)
30#define G_LOG_IMP_ONCE( expr , severity ) do { static bool done__ = false ; if(!done__&&G::LogOutput::Instance::at(severity)) { auto log_stream = G::LogOutput::Instance::start((severity),__FILE__,__LINE__) ; log_stream << expr ; G::LogOutput::Instance::output(log_stream) ; } done__ = true ; } while(0)
32#if defined(G_WITH_DEBUG) || ( defined(_DEBUG) && ! defined(G_NO_DEBUG) )
33#define G_DEBUG( expr ) G_LOG_IMP( expr , G::LogOutput::Severity::Debug )
34#define G_DEBUG_IF( cond , expr ) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::Debug )
35#define G_DEBUG_ONCE( expr ) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::Debug )
37#define G_DEBUG( expr )
38#define G_DEBUG_IF( cond , expr )
39#define G_DEBUG_ONCE( group , expr )
42#if ! defined(G_NO_LOG)
43#define G_LOG( expr ) G_LOG_IMP( expr , G::LogOutput::Severity::InfoVerbose )
44#define G_LOG_IF( cond , expr ) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoVerbose )
45#define G_LOG_ONCE( expr ) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoVerbose )
48#define G_LOG_IF( cond , expr )
49#define G_LOG_ONCE( expr )
52#if ! defined(G_NO_LOG_MORE)
53#define G_LOG_MORE( expr ) G_LOG_IMP( expr , G::LogOutput::Severity::InfoMoreVerbose )
54#define G_LOG_MORE_IF( cond , expr ) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoMoreVerbose )
55#define G_LOG_MORE_ONCE( expr ) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoMoreVerbose )
57#define G_LOG_MORE( expr )
58#define G_LOG_MORE_IF( cond , expr )
59#define G_LOG_MORE_ONCE( expr )
62#if ! defined(G_NO_LOG_S)
63#define G_LOG_S( expr ) G_LOG_IMP( expr , G::LogOutput::Severity::InfoSummary )
64#define G_LOG_S_IF( cond , expr ) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoSummary )
65#define G_LOG_S_ONCE( expr ) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoSummary )
67#define G_LOG_S( expr )
68#define G_LOG_S_IF( cond , expr )
69#define G_LOG_S_ONCE( expr )
72#if ! defined(G_NO_WARNING)
73#define G_WARNING( expr ) G_LOG_IMP( expr , G::LogOutput::Severity::Warning )
74#define G_WARNING_IF( cond , expr ) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::Warning )
75#define G_WARNING_ONCE( expr ) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::Warning )
77#define G_WARNING( expr )
78#define G_WARNING_IF( cond , expr )
79#define G_WARNING_ONCE( expr )
82#if ! defined(G_NO_ERROR)
83#define G_ERROR( expr ) G_LOG_IMP( expr , G::LogOutput::Severity::Error )
85#define G_ERROR( expr )