support assign logger

customer logger. the log can be redirect to file.