#include "gdef.h"
#include <sstream>
#include <string>
Go to the source code of this file.
|
| G |
| Low-level classes for o/s services.
|
|
|
#define | G_LOG_OUTPUT(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_DEBUG(expr) |
|
#define | G_LOG(expr) G_LOG_OUTPUT( expr , G::Log::s_LogVerbose ) |
|
#define | G_LOG_S(expr) G_LOG_OUTPUT( expr , G::Log::s_LogSummary ) |
|
#define | G_WARNING(expr) G_LOG_OUTPUT( expr , G::Log::s_Warning ) |
|
#define | G_WARNING_ONCE(expr) do { static bool warned=false; if(!warned) G_LOG_OUTPUT(expr,G::Log::s_Warning); warned=true; } while(0) |
|
#define | G_ERROR(expr) G_LOG_OUTPUT( expr , G::Log::s_Error ) |
|
#define G_LOG_OUTPUT |
( |
|
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 92 of file glog.h.