You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
The above works in 2sxc, what does the same thing look like in a .ascx (skin) file?
How do we want this to work in Accu something.cs? And, what is the right interface?
// 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:
The text was updated successfully, but these errors were encountered: