logger.go renamet to file_writer.go
add console_writer.go
do writer.flush() when server exit