ILogger in 4.40 Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
hello,
after adding ILogger to the plugin's constructor, when installing the plugin, I get an error :
The plugin "Payments.xxx" not installed
Nop.Core.NopException: No constructor was found that had all the dependencies satisfied.
---> Nop.Core.NopException: Unknown dependency
3 years ago
How are you referencing Ilogger?

You shouldn't need to register it within your plugin.


public partial class MyCustomController : BasePluginController
{
#region Fields
private readonly ILogger _logger;
#endregion

#region Ctor
public MyCustomController(ILogger logger)
{
_logger = logger;
}
#endregion
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.