Warning about using cerr with colors
This commit is contained in:
parent
b4eb3a0637
commit
81e6b5747c
1 changed files with 5 additions and 0 deletions
|
@ -143,6 +143,11 @@ void nano::logger::initialize_common (nano::log_config const & config, std::opti
|
|||
}
|
||||
else
|
||||
{
|
||||
if (config.console.colors)
|
||||
{
|
||||
std::cerr << "WARNING: Logging to cerr is enabled, console colors will be disabled" << std::endl;
|
||||
}
|
||||
|
||||
auto cerr_sink = std::make_shared<spdlog::sinks::stderr_sink_mt> ();
|
||||
global_sinks.push_back (cerr_sink);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue