Edit:  Enhandsor_logging test code
       make it easier to read and modify

to do list:
1. sleep code
2. system time sync