#include <log.h>
Public Member Functions | |
void | addGlobalTee (Tee *t) |
void | flush (Tee *t=0) |
int | getIndent () const |
void | indentDec () |
void | indentInc () |
Logstream & | operator<< (ios_base &(*_hex)(ios_base &)) |
Logstream & | operator<< (ostream &(*_endl)(ostream &)) |
Nullstream & | operator<< (Tee *tee) |
Logstream & | operator<< (const LazyString &x) |
Logstream & | operator<< (bool x) |
Logstream & | operator<< (unsigned long long x) |
Logstream & | operator<< (long long x) |
Logstream & | operator<< (const void *x) |
Logstream & | operator<< (void *x) |
Logstream & | operator<< (double x) |
Logstream & | operator<< (unsigned x) |
Logstream & | operator<< (unsigned long x) |
Logstream & | operator<< (long x) |
Logstream & | operator<< (ExitCode x) |
Logstream & | operator<< (int x) |
Logstream & | operator<< (char x) |
Logstream & | operator<< (char *x) |
Logstream & | operator<< (const StringData &x) |
Logstream & | operator<< (const string &x) |
Logstream & | operator<< (const char *x) |
Logstream & | prolog () |
Nullstream & | setLogLevel (LogLevel l) |
Static Public Member Functions | |
static Logstream & | get () |
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 |
Definition at line 161 of file log.h.
void mongo::Logstream::flush | ( | Tee * | t = 0 |
) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
void mongo::Logstream::logLockless | ( | const StringData & | s | ) | [inline, static] |
Logstream& mongo::Logstream::operator<< | ( | ios_base &(*)(ios_base &) | _hex | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | ostream &(*)(ostream &) | _endl | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Nullstream& mongo::Logstream::operator<< | ( | Tee * | tee | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | const LazyString & | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | bool | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | unsigned long long | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | long long | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | const void * | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | void * | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | double | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | unsigned | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | unsigned long | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | long | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | int | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | char | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | char * | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | const StringData & | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | const string & | x | ) | [inline, virtual] |
Reimplemented from mongo::Nullstream.
Logstream& mongo::Logstream::operator<< | ( | const char * | x | ) | [inline, virtual] |
static void mongo::Logstream::setLogFile | ( | FILE * | f | ) | [inline, static] |
Nullstream& mongo::Logstream::setLogLevel | ( | LogLevel | l | ) | [inline] |
int mongo::Logstream::doneSetup [static, private] |
vector<Tee*>* mongo::Logstream::globalTees [static, private] |
int mongo::Logstream::indent [private] |
FILE* mongo::Logstream::logfile [static, private] |
LogLevel mongo::Logstream::logLevel [private] |
mongo::mutex mongo::Logstream::mutex [static, private] |
stringstream mongo::Logstream::ss [private] |
boost::scoped_ptr<ostream> mongo::Logstream::stream [static, private] |
thread_specific_ptr<Logstream> mongo::Logstream::tsp [static, private] |