add helper method for using error_log
Merge.