ethz-asl/lpp

Is there a feature to saving log files?

qpc001 opened this issue · 1 comments

Is there a feature to saving log files?
4c3y commented

There is no built-in feature to save logs to a file. However you can use a callback function to achieve this. Note that this only works if MODE_LPP is defined:

void logCallback(BaseSeverity severity, const std::string& str) {
 //Log to file
}

int main(int argc, char *argv[]) {
  LOG_INIT(*argv, logCallback);
  ...
}

Hope this helps!