E-MailRelay

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces | Macros
glog.h File Reference
`#include "gdef.h"`
`#include <sstream>`
`#include <string>`

Go to the source code of this file.

## Classes
class | G::Log
| A class for doing iostream-based logging. More...
class | G::Log::Line
| A class for adding line number information to the Log output. More...

## Namespaces
| G
| Low-level classes.

## Macros
#define | G_LOG_IMP(expr, severity) do { if(G::Log::at(severity)) G::Log(severity,__FILE__,__LINE__) << expr ; } while(0)
| The debug macro is for debugging during development. More...
#define | G_LOG_IMP_IF(cond, expr, severity) do { if(G::Log::at(severity)&&(cond)) G::Log(severity,__FILE__,__LINE__) << expr ; } while(0)
#define | G_LOG_IMP_GROUP(grp, expr, severity) do { if(G::Log::at(severity,grp)) G::Log(severity,__FILE__,__LINE__) << expr ; } while(0)
#define | G_LOG_IMP_ONCE(expr, severity) do { static bool done__ = false ; if(!done__) G::Log(severity,__FILE__,__LINE__) << expr ; done__ = true ; } while(0)
#define | G_DEBUG(expr)
#define | G_DEBUG_IF(cond, expr)
#define | G_DEBUG_GROUP(group, expr)
#define | G_DEBUG_ONCE(group, expr)
#define | G_LOG(expr) G_LOG_IMP( expr , G::Log::s_LogVerbose )
#define | G_LOG_IF(cond, expr) G_LOG_IMP_IF( cond , expr , G::Log::s_LogVerbose )
#define | G_LOG_GROUP(grp, expr) G_LOG_IMP_GROUP( grp , expr , G::Log::s_LogVerbose )
#define | G_LOG_ONCE(expr) G_LOG_IMP_ONCE( cond , expr , G::Log::s_LogVerbose )
#define | G_LOG_S(expr) G_LOG_IMP( expr , G::Log::s_LogSummary )
#define | G_WARNING(expr) G_LOG_IMP( expr , G::Log::s_Warning )
#define | G_WARNING_ONCE(expr) G_LOG_IMP_ONCE( expr , G::Log::s_Warning )
#define | G_ERROR(expr) G_LOG_IMP( expr , G::Log::s_Error )

## Macro Definition Documentation

#define G_LOG_IMP | ( |  | expr,
|  |  | severity
| ) |  | do { if(G::Log::at(severity)) G::Log(severity,__FILE__,__LINE__) << expr ; } while(0)

The debug macro is for debugging during development.

The log macro is used for progress logging, typically in long-lived server processes. The warning and error macros are used for error warning/error messages. In programs where logging can be disabled completely (see LogOutput) then warning/error messages should also get raised by some another independent means.

Definition at line 95 of file glog.h.