mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Expose Serilog API to plugins
This commit is contained in:
parent
3c18814a66
commit
621fd17e1d
3 changed files with 13 additions and 7 deletions
|
|
@ -40,6 +40,9 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog
|
|||
|
||||
this.Logger = loggerConfiguration.CreateLogger();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ILogger Logger { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public LogEventLevel MinimumLogLevel
|
||||
|
|
@ -47,12 +50,7 @@ internal class ScopedPluginLogService : IServiceType, IPluginLog
|
|||
get => this.levelSwitch.MinimumLevel;
|
||||
set => this.levelSwitch.MinimumLevel = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a logger that may be exposed to plugins some day.
|
||||
/// </summary>
|
||||
public ILogger Logger { get; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Fatal(string messageTemplate, params object[] values) =>
|
||||
this.Write(LogEventLevel.Fatal, null, messageTemplate, values);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue