unit test fixed
log module auto flush optimized
bug fix in log module for file and remote write