If I want to write a simple message to the Log regarding a user action, what is the (best) way to do so?
Should I use the 'DefaultLogger' or the 'CustomerActivityService'? And, more important, how? :)
Thanks in advance!
Nop.Services.Logging.DefaultLogger logger = (Nop.Services.Logging.DefaultLogger)Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Logging.ILogger>();
logger.InsertLog(Nop.Core.Domain.Logging.LogLevel.Information, "Customer doing something!", "Customer ......", null);