add enabled local storage config
add config prefix
change code style
make cliend id to be config
push log data into local storage if enableLocal is true
launch log object when push