adding support for custom error_log