Added log rotation capability with default of 1M byte max size. counter is added to the log files names