diff --git a/Dalamud/Logging/ScopedPluginLogService.cs b/Dalamud/Logging/ScopedPluginLogService.cs
index 54f231e0d..7305aa87b 100644
--- a/Dalamud/Logging/ScopedPluginLogService.cs
+++ b/Dalamud/Logging/ScopedPluginLogService.cs
@@ -40,6 +40,9 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog
this.Logger = loggerConfiguration.CreateLogger();
}
+
+ ///
+ public ILogger Logger { get; }
///
public LogEventLevel MinimumLogLevel
@@ -47,12 +50,7 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog
get => this.levelSwitch.MinimumLevel;
set => this.levelSwitch.MinimumLevel = value;
}
-
- ///
- /// Gets a logger that may be exposed to plugins some day.
- ///
- public ILogger Logger { get; }
-
+
///
public void Fatal(string messageTemplate, params object[] values) =>
this.Write(LogEventLevel.Fatal, null, messageTemplate, values);
diff --git a/Dalamud/Plugin/Services/IPluginLog.cs b/Dalamud/Plugin/Services/IPluginLog.cs
index dcba5bb29..38406fd91 100644
--- a/Dalamud/Plugin/Services/IPluginLog.cs
+++ b/Dalamud/Plugin/Services/IPluginLog.cs
@@ -1,4 +1,5 @@
-using Serilog.Events;
+using Serilog;
+using Serilog.Events;
#pragma warning disable CS1573 // See https://github.com/dotnet/roslyn/issues/40325
@@ -9,6 +10,12 @@ namespace Dalamud.Plugin.Services;
///
public interface IPluginLog
{
+ ///
+ /// Gets a Serilog ILogger instance for this plugin. This is the entrypoint for plugins that wish to use more
+ /// advanced logging functionality.
+ ///
+ public ILogger Logger { get; }
+
///
/// Gets or sets the minimum log level that will be recorded from this plugin to Dalamud's logs. This may be set
/// by either the plugin or by Dalamud itself.
diff --git a/targets/Dalamud.Plugin.targets b/targets/Dalamud.Plugin.targets
index dc5bec410..10b63c437 100644
--- a/targets/Dalamud.Plugin.targets
+++ b/targets/Dalamud.Plugin.targets
@@ -22,6 +22,7 @@
+