|Subject:||Re: [Linphone-developers] Limit number of files generated by liblinphone's LoggingService|
|Date:||Thu, 19 May 2022 17:37:22 +0200|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0|
I don't know this part of the code, but out of instinct I would say that if you set the limit size in the code (the "(1024 )*5") part to increase the size limit you will have less files, each file taking more space.
Junior DevOps Engineer
Belledonne Communications, the company behind Linphone
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,
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
_______________________________________________ Linphone-developers mailing list Linphoneemail@example.com https://lists.nongnu.org/mailman/listinfo/linphone-developers
Description: OpenPGP public key
Description: OpenPGP digital signature
|[Prev in Thread]||Current Thread||[Next in Thread]|