refactor(abstractions): rename ILogger to IPluginLogger, doc Initialize
Addresses code quality review of ed1c2d0:
- ILogger would collide with Microsoft.Extensions.Logging.ILogger and Serilog.ILogger
in any plugin file that imports both namespaces; renamed to IPluginLogger
- IAcDreamPlugin.Initialize now has an XML doc clarifying its lifecycle contract
This commit is contained in:
parent
ed1c2d061c
commit
9dfbc05052
3 changed files with 9 additions and 4 deletions
9
src/AcDream.Plugin.Abstractions/IPluginLogger.cs
Normal file
9
src/AcDream.Plugin.Abstractions/IPluginLogger.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// src/AcDream.Plugin.Abstractions/IPluginLogger.cs
|
||||
namespace AcDream.Plugin.Abstractions;
|
||||
|
||||
public interface IPluginLogger
|
||||
{
|
||||
void Info(string message);
|
||||
void Warn(string message);
|
||||
void Error(string message, Exception? exception = null);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue