linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Limit number of files generated by liblinphone


From: Peio Rigaux
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

Hello Krunal.

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.


Regards,

Peio Rigaux
Junior DevOps Engineer
Belledonne Communications, the company behind Linphone
Linphone.org

Le 16/02/2022 à 18:54, Krunal Patil via Linphone-developers a écrit :
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

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
Linphone-developers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/linphone-developers

Attachment: OpenPGP_0x99D28356FED78143.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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