From eb06f746735b5726f46bf4b3af6c5ad29ba10106 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 25 Aug 2010 16:10:31 -0400 Subject: some log cleaning --- util/log.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'util') 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 */ -- cgit v1.2.1