New log system (write in file)