add YAML config and log system change

Loading config from YAML file,in constructor. …
complete log system,now a new log will be generated every day