How to Delete Existing content of a file and Log again?

Hi,

I am using logToFile plugin to create a log file into mobile device.

I have a requirement where I need to clear the existing log content before writing to new log into the log file.

Can someone please help, how to clear existing content and write to log again.

I am using below plugin.

https://libraries.io/npm/cordova-plugin-logtofile

https://github.com/andischerer/cordova-plugin-logtofile


Thanks 

Dileep

Hi Dileep,

Regarding the exposed functionality of those Cordova plugins you have to check the links that you provided yourself. I had a quick a look at the code and could not identify any method that clears or removes the log file.

Did you consider to use the standard logging capabilities that OutSystems has for mobile applications?

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/JavaScript_API/Logger

Regards,

Daniel

Hi Daniel,

I also didnt get anything related to that. Is there any other alternate to create a log file local to mobile device.

link you provided, is related to server side log not local log?


Thanks


Dileep



Daniël Kuhlmann wrote:

Hi Dileep,

Regarding the exposed functionality of those Cordova plugins you have to check the links that you provided yourself. I had a quick a look at the code and could not identify any method that clears or removes the log file.

Did you consider to use the standard logging capabilities that OutSystems has for mobile applications?

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/JavaScript_API/Logger

Regards,

Daniel