[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Limit number of files generated by liblinphone's L

From: Krunal Patil
Subject: [Linphone-developers] Limit number of files generated by liblinphone's LoggingService
Date: Wed, 16 Feb 2022 23:24:37 +0530

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->setLogFile("./logs", "logging-service-logs.txt", (1024 )*5);

Thanks for looking into this.

Thanks and regards,
Krunal Patil

This message contains information that may be privileged or confidential and is the property of the Quantiphi Inc and/or its affiliates. It is intended only for the person to whom it is addressed. If you are not the intended recipient, any review, dissemination, distribution, copying, storage or other use of all or any portion of this message is strictly prohibited. If you received this message in error, please immediately notify the sender by reply e-mail and delete this message in its entirety

reply via email to

[Prev in Thread] Current Thread [Next in Thread]