Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.79 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.79 KB

✏️ Xrm Earth Logger 📋

  • Provides custom log writing in Dynamics CRM 👍

Description

  • 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. 😎

Getting Started

Dependencies

  • Dynamics CRM V9 Recommended ❤️

Installing

Example Parameters 🔔

CRM Logger 🚋 (outside the sandbox)

public IOrganizationService Service { get; set; }
var crmConnection = new CrmConnection(Service);
var crmLogger = LogManager.CreateLogger(crmConnection);
LogManager.RegisterAll(crmLogger);

CRM Logger 🔑 (in the plugin,workflow)

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);

Usage 💾

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 Nuget Package 😊

Install-Package XrmEarth.Logger -Version 1.0.0