update log config and refactor configuration class