set log prefix in event listeners