optimize the performance and add UI logger appender