new functions added

1. enable highlight as tag name
2. force flush the log file when idle
3. auto rename the log file name if exist already