Only log event if event logger is specified