Hi All,
Is there a way to limit the number of log files generated by liblinphone's LoggingService. I have used following code snippet to record all the debug level logs generated by liblinphone. I have observed that once maxFileSize of 5KB is reached then
logging-service-logs.txt_1 appears on disk, if again 5KB of log file size is exceeded then logging-service-logs.txt_2 appears on the disk and so on... Is there a way to limit number of such log files created. Otherwise, this would exhaust my local storage.
shared_ptr<LoggingService> logger = LoggingService::get();
logger->setDomain("LinphoneManager");
logger->setLogLevel(linphone::LogLevel::Debug);
logger->setLogFile("./logs", "logging-service-logs.txt", (1024 )*5);
Thanks for looking into this.
Thanks and regards,
Krunal Patil