implement store log to disk according to severity and time, code format