Take log config as a parameter