summaryrefslogtreecommitdiff
path: root/util/log.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-09-17 13:34:43 -0400
committerEliot Horowitz <eliot@10gen.com>2010-09-17 13:35:31 -0400
commit8847592479d4b3cb925d395c833458d2731396b9 (patch)
treee6ef887a5f59aead0f8fe72e7ddce527ff11a0fd /util/log.h
parent684f67d21f8fd5e9eb12b39467367115cd45a97b (diff)
downloadmongo-8847592479d4b3cb925d395c833458d2731396b9.tar.gz
LOG macros so can use LOG(1) instead of log(1)
Diffstat (limited to 'util/log.h')
-rw-r--r--util/log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/log.h b/util/log.h
index cf8afd22875..b137fac7b7d 100644
--- a/util/log.h
+++ b/util/log.h
@@ -298,6 +298,9 @@ namespace mongo {
return Logstream::get().prolog();
}
+#define MONGO_LOG(level) if ( logLevel >= (level) ) log( level )
+#define LOG MONGO_LOG
+
inline Nullstream& log( LogLevel l ) {
return Logstream::get().prolog().setLogLevel( l );
}