added function log_start()