It looks like the problem is the shortdate
in your filename definition. See my answer at this question: Delete log files after x days
You have to define the filename without the date part
fileName="${basedir}/logs/Log.info.txt
It looks like the problem is the shortdate
in your filename definition. See my answer at this question: Delete log files after x days
You have to define the filename without the date part
fileName="${basedir}/logs/Log.info.txt