add mainEvent and log config