add config method

add config method
change log method

change log method