diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 13:34:43 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 13:35:31 -0400 |
commit | 8847592479d4b3cb925d395c833458d2731396b9 (patch) | |
tree | e6ef887a5f59aead0f8fe72e7ddce527ff11a0fd /util/log.h | |
parent | 684f67d21f8fd5e9eb12b39467367115cd45a97b (diff) | |
download | mongo-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.h | 3 |
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 ); } |