supress LogStream empty line log entries; ignore VS profiler files

This commit is contained in:
alex 2014-12-08 00:00:40 -06:00
parent 06881cdea7
commit e5cdb74bb0
2 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View File

@ -13,6 +13,8 @@
*.la
*.a
*.d
*.vsp
*.psess
# Make #
########

View File

@ -47,9 +47,12 @@ int LogStreamBuf::writeToDevice(char c)
{
if (c == '\n' || c == '\r')
{
Message msg(_logger.name(), _message, _priority);
_message.clear();
_logger.log(msg);
if (_message.find_first_not_of("\r\n") != std::string::npos)
{
Message msg(_logger.name(), _message, _priority);
_message.clear();
_logger.log(msg);
}
}
else _message += c;
return c;