update logger

This commit is contained in:
badaix 2017-07-24 18:59:49 +02:00
parent 2955b20e9d
commit ce55f15c02
36 changed files with 967 additions and 389 deletions

View file

@ -123,7 +123,7 @@ void ProcessStream::onStderrMsg(const char* buffer, size_t n)
{
string line = utils::string::trim_copy(string(buffer, n));
if ((line.find('\0') == string::npos) && !line.empty())
logO << "(" << getName() << ") " << line << "\n";
LOG(INFO) << "(" << getName() << ") " << line << "\n";
}
}
@ -213,7 +213,7 @@ void ProcessStream::worker()
{
if (lastException != e.what())
{
logE << "(PipeStream) Exception: " << e.what() << std::endl;
LOG(ERROR) << "(PipeStream) Exception: " << e.what() << std::endl;
lastException = e.what();
}
process_->kill();