Command line option to not log to console after startup

This commit is contained in:
Mark Travis
2015-12-10 07:51:01 -08:00
committed by Nik Bougalis
parent d17c8e235f
commit f26835e507
5 changed files with 22 additions and 2 deletions

View File

@@ -176,7 +176,8 @@ Logs::write (beast::Journal::Severity level, std::string const& partition,
format (s, text, level, partition);
std::lock_guard <std::mutex> lock (mutex_);
file_.writeln (s);
std::cerr << s << '\n';
if (! silent_)
std::cerr << s << '\n';
// VFALCO TODO Fix console output
//if (console)
// out_.write_console(s);