refactoring log config and field mapping sections