Nlog logging for Sparx Enterprise Architect output window.
- Add the nuget package to your Enterprise Architect Plugin code project
- Initialize the logging provider in the
EA_FileOpen
event handler. This will write all Nlog logging messages into the Enterprise Architect output window tab with your given name (e.g.My Plugin Name
).
using MDD4All.EnterpriseArchitect.Logging;
...
public void EA_FileOpen(EA.Repository repository)
{
EaPluginNlogConfigurator.InitializePluginLogging(repository, "My Plugin Name");
...
}