logstream.hxx File Reference

Stream based logging mechanism. More...

#include <simgear/compiler.h>
#include <streambuf>
#include <ostream>
#include <cstdio>
#include <simgear/debug/debug_types.h>

Go to the source code of this file.

Classes

class  logbuf
 logbuf is an output-only streambuf with the ability to disable sets of messages at runtime. More...
struct  loglevel
 logstream manipulator for setting the log level of a message. More...
struct  logstream_base
 A helper class that ensures a streambuf and ostream are constructed and destroyed in the correct order. More...
class  logstream
 Class to manage the debug logging stream. More...

Defines

#define SG_LOG(C, P, M)
 Log a message.

Detailed Description

Stream based logging mechanism.

Definition in file logstream.hxx.


Define Documentation

#define SG_LOG ( C,
P,
 ) 
Value:
do {                     \
        logstream& __tmplogstreamref(sglog());                      \
        if(__tmplogstreamref.would_log(C,P)) {                      \
        __tmplogstreamref << loglevel(C,P) << M << std::endl; } \
        } while(0)

Log a message.

Parameters:
C debug class
P priority
M message

Definition at line 298 of file logstream.hxx.


Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1