some commit
add a write log function
config the trace and can be dump