added support for rotatelogs. rotatelogs is set to truncate.