public IOrganizationService Service { get; set; }
var crmConnection = new CrmConnection(Service);
var crmLogger = LogManager.CreateLogger(crmConnection);
LogManager.RegisterAll(crmLogger);
public IOrganizationService Service { get; set; }
InitConfiguration.InjectApplication = false; // must be sandbox value=false
InitConfiguration.OverrideAssembly = typeof(IPlugin).Assembly;
var crmConnection = new CrmConnection(service);
var crmLogger = LogManager.CreateLogger(crmConnection);
LogManager.RegisterAll(CrmLogger);
crmLogger.Info("Test Log Message", 15);
crmLogger.Error("Test Error", 1501, "Tag1 Value","Tag2 Value");
crmLogger.Info("Test Info", 1502, "Tag1 Value", "Tag2 Value");
crmLogger.Warning("Test Warning", 1502, "Tag1 Value", "Tag2 Value");
Install-Package XrmEarth.Logger -Version 1.0.0