mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-30 05:39:03 +01:00
supress LogStream empty line log entries; ignore VS profiler files
This commit is contained in:
parent
06881cdea7
commit
e5cdb74bb0
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,6 +13,8 @@
|
||||
*.la
|
||||
*.a
|
||||
*.d
|
||||
*.vsp
|
||||
*.psess
|
||||
|
||||
# Make #
|
||||
########
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user