snpe-sample to android demo
auto logger_opt = snpe->getDiagLogInterface();
if (!logger_opt) throw std::runtime_error("SNPE failed to obtain logging interface");
auto logger = *logger_opt;
auto opts = logger->getOptions();
opts.LogFileDirectory = OutputDir;
if(!logger->setOptions(opts)) {
std::cerr << "Failed to set options" << std::endl;
std::exit(1);
}
if (!logger->start()) {
std::cerr << "Failed to start logger" << std::endl;
std::exit(1);
}
Always output "Failed to start logger" on andeoid demo
Could someone help me fix this issue?
Hi,
Did you get any response or working solution to this. I am also facing same issue.
Resolved it! There was some issue with 'OutputDir' value. When I tried different location (/sdcard/DCIM), I was able to dump log. Please check the location in your case too.