add LOGGER_EVERY_N,LOGGER_IF