Does anyone perhaps have an example to replace the old Error logging in DNN module?
I have looked at the following articles:
- https://dnncommunity.org/forums/aft/1527
- Has anyone implemented DotNetNuke.Abstractions.Portals.IPortalAliasInfo.HttpAlias in DNN version 9.9?
I currently get the following error:
catch (Exception ex)
{
EventLogController logController = new EventLogController();
logController.AddLog("Problem Getting Product Description, Title, or Image URL.", ex.ToString(), EventLogController.EventLogType.ADMIN_ALERT);
}
Do you need to create a startup file? If so, do you need to create a startup file for each module or put it in the root folder?