A static class for doing iostream-based logging.
More...
#include <glog.h>
|
class | Line |
| A class for adding line number information to the Log output. More...
|
|
|
| Log (Severity, const char *file, int line) |
| Constructor. More...
|
|
| ~Log () |
| Destructor. Writes the accumulated string to the log output. More...
|
|
std::ostream & | operator<< (const char *s) |
| Streams 's' and then returns a stream for streaming more stuff into. More...
|
|
std::ostream & | operator<< (const std::string &s) |
| Streams 's' and then returns a stream for streaming more stuff into. More...
|
|
A static class for doing iostream-based logging.
The G_LOG/G_DEBUG/G_WARNING/G_ERROR macros are provided as a convenient way of using this interface.
Usage:
or
- See also
- G::LogOutput
Definition at line 50 of file glog.h.
Enumerator |
---|
s_LogVerbose |
|
s_LogSummary |
|
s_Debug |
|
s_Warning |
|
s_Error |
|
s_Assertion |
|
Definition at line 53 of file glog.h.
G::Log::Log |
( |
Severity |
severity, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
Constructor.
Definition at line 25 of file glog.cpp.
Destructor. Writes the accumulated string to the log output.
Definition at line 32 of file glog.cpp.
std::ostream & G::Log::operator<< |
( |
const char * |
s | ) |
|
Streams 's' and then returns a stream for streaming more stuff into.
Definition at line 68 of file glog.cpp.
std::ostream & G::Log::operator<< |
( |
const std::string & |
s | ) |
|
Streams 's' and then returns a stream for streaming more stuff into.
Definition at line 74 of file glog.cpp.
The documentation for this class was generated from the following files: