mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
added std::flush
This commit is contained in:
@ -43,4 +43,5 @@ int main() {
|
|||||||
LOG(logINFOBLUE) << "some infoBLUE text";
|
LOG(logINFOBLUE) << "some infoBLUE text";
|
||||||
LOG(logINFOGREEN) << "some infoGREEN text";
|
LOG(logINFOGREEN) << "some infoGREEN text";
|
||||||
LOG(logINFORED) << "some infoRED text";
|
LOG(logINFORED) << "some infoRED text";
|
||||||
|
|
||||||
}
|
}
|
@ -22,7 +22,7 @@ class Logger {
|
|||||||
~Logger() {
|
~Logger() {
|
||||||
// output in the destructor to allow for << syntax
|
// output in the destructor to allow for << syntax
|
||||||
os << RESET << '\n';
|
os << RESET << '\n';
|
||||||
std::clog << os.str(); // Single write
|
std::clog << os.str() << std::flush; // Single write
|
||||||
}
|
}
|
||||||
|
|
||||||
static TLogLevel &ReportingLevel() { // singelton eeh
|
static TLogLevel &ReportingLevel() { // singelton eeh
|
||||||
|
Reference in New Issue
Block a user