E-MailRelay

Macros
glog.h File Reference
`#include "gdef.h"`
`#include "glogstream.h"`
`#include "glogoutput.h"`
Include dependency graph for glog.h:

Go to the source code of this file.

## Macros
#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) /* NOLINT bugprone-macro-parentheses */
#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) /* NOLINT bugprone-macro-parentheses */
#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) /* NOLINT bugprone-macro-parentheses */
#define | G_DEBUG(expr)
#define | G_DEBUG_IF(cond, expr)
#define | G_DEBUG_ONCE(group, expr)
#define | G_LOG(expr) G_LOG_IMP( expr , G::LogOutput::Severity::InfoVerbose )
#define | G_LOG_IF(cond, expr) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoVerbose )
#define | G_LOG_ONCE(expr) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoVerbose )
#define | G_LOG_MORE(expr) G_LOG_IMP( expr , G::LogOutput::Severity::InfoMoreVerbose )
#define | G_LOG_MORE_IF(cond, expr) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoMoreVerbose )
#define | G_LOG_MORE_ONCE(expr) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoMoreVerbose )
#define | G_LOG_S(expr) G_LOG_IMP( expr , G::LogOutput::Severity::InfoSummary )
#define | G_LOG_S_IF(cond, expr) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoSummary )
#define | G_LOG_S_ONCE(expr) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoSummary )
#define | G_WARNING(expr) G_LOG_IMP( expr , G::LogOutput::Severity::Warning )
#define | G_WARNING_IF(cond, expr) G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::Warning )
#define | G_WARNING_ONCE(expr) G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::Warning )
#define | G_ERROR(expr) G_LOG_IMP( expr , G::LogOutput::Severity::Error )

## Macro Definition Documentation

## ◆ G_DEBUG

#define G_DEBUG | ( |  | expr | ) |

Definition at line 37 of file glog.h.

## ◆ G_DEBUG_IF

#define G_DEBUG_IF | ( |  | cond,
|  |  | expr
| ) |  |

Definition at line 38 of file glog.h.

## ◆ G_DEBUG_ONCE

#define G_DEBUG_ONCE | ( |  | group,
|  |  | expr
| ) |  |

Definition at line 39 of file glog.h.

## ◆ G_ERROR

#define G_ERROR | ( |  | expr | ) | G_LOG_IMP( expr , G::LogOutput::Severity::Error )

Definition at line 83 of file glog.h.

## ◆ G_LOG

#define G_LOG | ( |  | expr | ) | G_LOG_IMP( expr , G::LogOutput::Severity::InfoVerbose )

Definition at line 43 of file glog.h.

## ◆ G_LOG_IF

#define G_LOG_IF | ( |  | cond,
|  |  | expr
| ) |  | G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoVerbose )

Definition at line 44 of file glog.h.

## ◆ G_LOG_IMP

#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) /* NOLINT bugprone-macro-parentheses */

Definition at line 28 of file glog.h.

## ◆ G_LOG_IMP_IF

#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) /* NOLINT bugprone-macro-parentheses */

Definition at line 29 of file glog.h.

## ◆ G_LOG_IMP_ONCE

#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) /* NOLINT bugprone-macro-parentheses */

Definition at line 30 of file glog.h.

## ◆ G_LOG_MORE

#define G_LOG_MORE | ( |  | expr | ) | G_LOG_IMP( expr , G::LogOutput::Severity::InfoMoreVerbose )

Definition at line 53 of file glog.h.

## ◆ G_LOG_MORE_IF

#define G_LOG_MORE_IF | ( |  | cond,
|  |  | expr
| ) |  | G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoMoreVerbose )

Definition at line 54 of file glog.h.

## ◆ G_LOG_MORE_ONCE

#define G_LOG_MORE_ONCE | ( |  | expr | ) | G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoMoreVerbose )

Definition at line 55 of file glog.h.

## ◆ G_LOG_ONCE

#define G_LOG_ONCE | ( |  | expr | ) | G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoVerbose )

Definition at line 45 of file glog.h.

## ◆ G_LOG_S

#define G_LOG_S | ( |  | expr | ) | G_LOG_IMP( expr , G::LogOutput::Severity::InfoSummary )

Definition at line 63 of file glog.h.

## ◆ G_LOG_S_IF

#define G_LOG_S_IF | ( |  | cond,
|  |  | expr
| ) |  | G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::InfoSummary )

Definition at line 64 of file glog.h.

## ◆ G_LOG_S_ONCE

#define G_LOG_S_ONCE | ( |  | expr | ) | G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::InfoSummary )

Definition at line 65 of file glog.h.

## ◆ G_WARNING

#define G_WARNING | ( |  | expr | ) | G_LOG_IMP( expr , G::LogOutput::Severity::Warning )

Definition at line 73 of file glog.h.

## ◆ G_WARNING_IF

#define G_WARNING_IF | ( |  | cond,
|  |  | expr
| ) |  | G_LOG_IMP_IF( cond , expr , G::LogOutput::Severity::Warning )

Definition at line 74 of file glog.h.

## ◆ G_WARNING_ONCE

#define G_WARNING_ONCE | ( |  | expr | ) | G_LOG_IMP_ONCE( expr , G::LogOutput::Severity::Warning )

Definition at line 75 of file glog.h.