logfile init, write into files
can write multi files, but cannot write from beginning of a file