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
#include"easylogging++.h"
#include<chrono>
#include<thread>usingnamespacestd::chrono_literals;
INITIALIZE_EASYLOGGINGPP
intmain() {
el::Loggers::addFlag(el::LoggingFlag::MultiLoggerSupport);
el::Loggers::configureFromGlobal("./easylogging++.conf");
for (int i = 0; i <= 50; ++i) {
TIMED_SCOPE(timerBlkObj, "a1"); // this need to go to a1.txt and to consolestd::this_thread::sleep_for(10ms);
}
return0;
}
The text was updated successfully, but these errors were encountered:
could someone provide example how to put all performance logging into a file
a1.txt
?looks like this example is doing something different and more complicated:
https://github.com/abumq/easyloggingpp/blob/master/samples/STL/custom-performance-output.cpp
I have not understood how to use that.
This code output performance to console, how to make it output to second logger (--a1) ?
easylogging++.conf
main.cpp
The text was updated successfully, but these errors were encountered: