Skip to content

mailaliozturk/xrmearth.logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

✏️ 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

About

Provides custom log writing in Dynamics CRM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published