diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-25 16:10:31 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-15 14:18:42 -0400 |
commit | eb06f746735b5726f46bf4b3af6c5ad29ba10106 (patch) | |
tree | eefa1a43d8d2b08d05772997c95b395121f34ac5 /util | |
parent | ce4693ad09f8d8ae4a86d0c2b2f200bca07f37d4 (diff) | |
download | mongo-eb06f746735b5726f46bf4b3af6c5ad29ba10106.tar.gz |
some log cleaning
Diffstat (limited to 'util')
-rw-r--r-- | util/log.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/util/log.h b/util/log.h index 1f11c81cff5..e0147a02761 100644 --- a/util/log.h +++ b/util/log.h @@ -295,10 +295,13 @@ namespace mongo { inline Nullstream& log() { return Logstream::get().prolog(); } + + inline Nullstream& error() { + return log( LL_ERROR ); + } - /* TODOCONCURRENCY */ - inline ostream& stdcout() { - return cout; + inline Nullstream& warning() { + return log( LL_WARNING ); } /* default impl returns "" -- mongod overrides */ |