diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-25 16:10:31 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-25 16:10:31 -0400 |
commit | 62cfaf245eb5051dcf1ec2e43216f84db714db14 (patch) | |
tree | af26ba82c3d76a90fb199531f0b0c4e398ead8c3 /util/log.h | |
parent | fe6dba14c7fc05b5fbe23bf8d5b5e2c2bf82d624 (diff) | |
download | mongo-62cfaf245eb5051dcf1ec2e43216f84db714db14.tar.gz |
some log cleaning
Diffstat (limited to 'util/log.h')
-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 ed3866a6467..20540aa98fb 100644 --- a/util/log.h +++ b/util/log.h @@ -302,10 +302,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 */ |