You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find this library quite usefull, but i've just found a bug.
When calling multiple times LOG, latest entry is not logged. As well as when called only once, nothing in log file is created. For example:
LOG(WARNING) << "Warning";
LOG(INFO) << "Information";
Only "Warning" gets outputed.
Furthermore, when calling two times same severity of logging, example:
LOG(WARNING) << "Warning";
LOG(WARNING) << "Warning";
Nothing is logged, until you change severity.
The text was updated successfully, but these errors were encountered:
AixLog needs to buffer the log lines to properly format them.
The buffer is "flushed" with every new line character. Alternatively, you can also insert << std::flush into the stream.
To ensure that the really last log line (without any flushing) is logged, I have to add a last sync in the destructor, which I will do tonight:
Hello,
I find this library quite usefull, but i've just found a bug.
When calling multiple times LOG, latest entry is not logged. As well as when called only once, nothing in log file is created. For example:
LOG(WARNING) << "Warning";
LOG(INFO) << "Information";
Only "Warning" gets outputed.
Furthermore, when calling two times same severity of logging, example:
LOG(WARNING) << "Warning";
LOG(WARNING) << "Warning";
Nothing is logged, until you change severity.
The text was updated successfully, but these errors were encountered: