Make sure you set your application name in web.config
<errorLog type="Elmah.SqlErrorLog, Elmah"
connectionStringName="nibWeb"
applicationName="Nib.Services" />
and then
ErrorLog.GetDefault(null).Log(new Error(error));
will work