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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…