- Provides custom log writing in Dynamics CRM 👍
- It provides flexible assembly developments that you can use in your Dynamics CRM processes. 🏃
- Functions in this assembly aim to increase productivity by reducing development loads. ⭐
- Can be used in plugin, workflow assembly, windows console app, windows service, web service. 😎
- Dynamics CRM V9 Recommended ❤️
- Download solution xrmearthlogger.zip and add it to crm. 💾
- then customize it by reviewing the example here 👈
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