How to send errors filtered to a special log file?