I do not know if it would help but you can use the Unix move command.
Examples
mv MeuArquivo.log MeuArquivo.txt
Or in a specific directory ...
mv /var/logs/MeuArquivo.log /var/logs/MeuArquivo.txt