log.h File Reference

#include <string.h>
#include <errno.h>
#include "../bson/util/builder.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mongo::LazyString
class  mongo::LazyStringImpl< T >
struct  mongo::LogIndentLevel
class  mongo::Logstream
class  mongo::Nullstream
class  mongo::Tee

Namespaces

namespace  mongo

Defines

#define LOG   MONGO_LOG
#define MONGO_LOG(level)   if ( logLevel >= (level) ) log( level )

Enumerations

enum  mongo::LogLevel {
  mongo::LL_DEBUG, mongo::LL_INFO, mongo::LL_NOTICE, mongo::LL_WARNING,
  mongo::LL_ERROR, mongo::LL_SEVERE
}

Functions

Nullstream & mongo::_log (int level=0)
string mongo::errnoWithDescription (int x=errno)
string mongo::errnoWithPrefix (const char *prefix)
Nullstream & mongo::error ()
void mongo::initLogging (const string &logpath, bool append)
Nullstream & mongo::log ()
Nullstream & mongo::log (LogLevel l)
Nullstream & mongo::log (int level)
void mongo::logflush (int level=0)
const char * mongo::logLevelToString (LogLevel l)
Nullstream & mongo::out (int level=0)
Nullstream & mongo::problem (int level=0)
void mongo::rotateLogs (int signal=0)
Nullstream & mongo::tlog (int level=0)
std::string mongo::toUtf8String (const std::wstring &wide)
Nullstream & mongo::warning ()

Variables

const char *(* mongo::getcurns )()
int mongo::logLevel
Nullstream mongo::nullstream

Define Documentation

#define LOG   MONGO_LOG

Definition at line 309 of file log.h.

#define MONGO_LOG ( level   )     if ( logLevel >= (level) ) log( level )

Definition at line 308 of file log.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


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