mongo::Logstream Class Reference

#include <log.h>

Inheritance diagram for mongo::Logstream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addGlobalTee (Tee *t)
void flush (Tee *t=0)
int getIndent () const
void indentDec ()
void indentInc ()
Logstreamoperator<< (ios_base &(*_hex)(ios_base &))
Logstreamoperator<< (ostream &(*_endl)(ostream &))
Nullstreamoperator<< (Tee *tee)
Logstreamoperator<< (const LazyString &x)
Logstreamoperator<< (bool x)
Logstreamoperator<< (unsigned long long x)
Logstreamoperator<< (long long x)
Logstreamoperator<< (const void *x)
Logstreamoperator<< (void *x)
Logstreamoperator<< (double x)
Logstreamoperator<< (unsigned x)
Logstreamoperator<< (unsigned long x)
Logstreamoperator<< (long x)
Logstreamoperator<< (ExitCode x)
Logstreamoperator<< (int x)
Logstreamoperator<< (char x)
Logstreamoperator<< (char *x)
Logstreamoperator<< (const StringData &x)
Logstreamoperator<< (const string &x)
Logstreamoperator<< (const char *x)
Logstreamprolog ()
NullstreamsetLogLevel (LogLevel l)

Static Public Member Functions

static Logstreamget ()
static int getLogDesc ()
static void logLockless (const StringData &s)
static int magicNumber ()
static void setLogFile (FILE *f)

Private Member Functions

void _init ()
 Logstream ()

Private Attributes

int indent
LogLevel logLevel
stringstream ss

Static Private Attributes

static int doneSetup
static vector< Tee * > * globalTees
static FILE * logfile
static mongo::mutex mutex
static boost::scoped_ptr< ostream > stream
static thread_specific_ptr
< Logstream
tsp

Detailed Description

Definition at line 161 of file log.h.


Constructor & Destructor Documentation

mongo::Logstream::Logstream (  )  [inline, private]

Definition at line 254 of file log.h.


Member Function Documentation

void mongo::Logstream::_init (  )  [inline, private]

Definition at line 258 of file log.h.

void mongo::Logstream::addGlobalTee ( Tee t  )  [inline]

Definition at line 242 of file log.h.

void mongo::Logstream::flush ( Tee t = 0  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 414 of file log.h.

static Logstream& mongo::Logstream::get (  )  [inline, static]

Definition at line 263 of file log.h.

int mongo::Logstream::getIndent (  )  const [inline]

Definition at line 250 of file log.h.

static int mongo::Logstream::getLogDesc (  )  [inline, static]

Definition at line 182 of file log.h.

void mongo::Logstream::indentDec (  )  [inline]

Definition at line 249 of file log.h.

void mongo::Logstream::indentInc (  )  [inline]

Definition at line 248 of file log.h.

void mongo::Logstream::logLockless ( const StringData s  )  [inline, static]

Definition at line 394 of file log.h.

static int mongo::Logstream::magicNumber (  )  [inline, static]

Definition at line 178 of file log.h.

Logstream& mongo::Logstream::operator<< ( ios_base &(*)(ios_base &)  _hex  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 233 of file log.h.

Logstream& mongo::Logstream::operator<< ( ostream &(*)(ostream &)  _endl  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 228 of file log.h.

Nullstream& mongo::Logstream::operator<< ( Tee tee  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 223 of file log.h.

Logstream& mongo::Logstream::operator<< ( const LazyString x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 219 of file log.h.

Logstream& mongo::Logstream::operator<< ( bool  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 217 of file log.h.

Logstream& mongo::Logstream::operator<< ( unsigned long long  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 216 of file log.h.

Logstream& mongo::Logstream::operator<< ( long long  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 215 of file log.h.

Logstream& mongo::Logstream::operator<< ( const void *  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 214 of file log.h.

Logstream& mongo::Logstream::operator<< ( void *  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 213 of file log.h.

Logstream& mongo::Logstream::operator<< ( double  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 212 of file log.h.

Logstream& mongo::Logstream::operator<< ( unsigned  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 211 of file log.h.

Logstream& mongo::Logstream::operator<< ( unsigned long  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 210 of file log.h.

Logstream& mongo::Logstream::operator<< ( long  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 209 of file log.h.

Logstream& mongo::Logstream::operator<< ( ExitCode  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 208 of file log.h.

Logstream& mongo::Logstream::operator<< ( int  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 207 of file log.h.

Logstream& mongo::Logstream::operator<< ( char  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 206 of file log.h.

Logstream& mongo::Logstream::operator<< ( char *  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 205 of file log.h.

Logstream& mongo::Logstream::operator<< ( const StringData x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 204 of file log.h.

Logstream& mongo::Logstream::operator<< ( const string &  x  )  [inline, virtual]

Reimplemented from mongo::Nullstream.

Definition at line 203 of file log.h.

Logstream& mongo::Logstream::operator<< ( const char *  x  )  [inline, virtual]

note these are virtual

Reimplemented from mongo::Nullstream.

Definition at line 202 of file log.h.

Logstream& mongo::Logstream::prolog (  )  [inline]

Definition at line 238 of file log.h.

static void mongo::Logstream::setLogFile ( FILE *  f  )  [inline, static]

Definition at line 173 of file log.h.

Nullstream& mongo::Logstream::setLogLevel ( LogLevel  l  )  [inline]

Definition at line 196 of file log.h.


Member Data Documentation

int mongo::Logstream::doneSetup [static, private]

Definition at line 163 of file log.h.

vector<Tee*>* mongo::Logstream::globalTees [static, private]

Definition at line 169 of file log.h.

int mongo::Logstream::indent [private]

Definition at line 165 of file log.h.

FILE* mongo::Logstream::logfile [static, private]

Definition at line 167 of file log.h.

Definition at line 166 of file log.h.

Definition at line 162 of file log.h.

stringstream mongo::Logstream::ss [private]

Definition at line 164 of file log.h.

boost::scoped_ptr<ostream> mongo::Logstream::stream [static, private]

Definition at line 168 of file log.h.

thread_specific_ptr<Logstream> mongo::Logstream::tsp [static, private]

Definition at line 253 of file log.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:56 2013