add log level from config and set localtime