add helper method for using error_log
Merge pull request #4406 from alprs/feature/error-log-handler

[4.2] Enable easier usage of error_log in Log\Writer