MpAuditTrail and Maximum number of files

Hi,
In the mappServices configuration for MpDataRecorder we have the helpful parameter “Maximum number of files” but unfortunately we don’t have similar par for MpAuditTrail.
How can you normally handle, for example, the case where the customer wants only 20 files in the Audit folder? Have you maybe developed a FUB to delete the older files? or integrated mappFramework in your prj where it’s implemented this feature?

Thanks
Ciao
Valerio

Hi @valerio.manenti, I do not have FUB for that. But I would use already existing samples for that. Here you have one which you can use for getting file list in directory. B&R Online Help and here you can find example how to manage the files. B&R Online Help If you need help let me know and I can develop for you small sample based on them :slight_smile:

1 Like

Thanks Jaroslav,
I have followed your recommendation and developed a FUB for that based on FileIO library

Ciao
Valerio

1 Like

@valerio.manenti great. I was sure that you can do it. You can share your FUB here, because you are not the first one who asked for it :wink: