Open jeremy-farrance opened 1 month ago
My quick experiment (in FCTRL2024 2sxc/Content/Accu/Heading__Basic.cshtml
@using DotNetNuke.Abstractions.Logging
@using DotNetNuke.Services.Log.EventLog
@{
// Log an event - keep is simple, just Name, Value, and Type
var dnnLogger = GetService<IEventLogger>(); // the 2sxc way to get the DNN logger
dnnLogger.AddLog("2sxc / Content App", "Heading__Basic.cshtml", EventLogType.ADMIN_ALERT);
}
// important: used named params and default EventLogType to ??
Accu.Dnn.Log(type: EventLogType.ADMIN_ALERT,
name: "2sxc / Content App",
value: "Heading__Basic.cshtml"
);
Some things needed or wanted: