only process logmessage if level is set