mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
Add IPluginLog#Info
- Shorthand for information log lines, because typing out `Information` is too much.
This commit is contained in:
parent
3618a510d0
commit
d29422bc50
2 changed files with 15 additions and 3 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
using System;
|
using Dalamud.IoC;
|
||||||
|
|
||||||
using Dalamud.IoC;
|
|
||||||
using Dalamud.IoC.Internal;
|
using Dalamud.IoC.Internal;
|
||||||
using Dalamud.Plugin.Internal.Types;
|
using Dalamud.Plugin.Internal.Types;
|
||||||
using Dalamud.Plugin.Services;
|
using Dalamud.Plugin.Services;
|
||||||
|
|
@ -91,6 +89,14 @@ public class ScopedPluginLogService : IServiceType, IPluginLog, IDisposable
|
||||||
public void Information(Exception? exception, string messageTemplate, params object[] values) =>
|
public void Information(Exception? exception, string messageTemplate, params object[] values) =>
|
||||||
this.Write(LogEventLevel.Information, exception, messageTemplate, values);
|
this.Write(LogEventLevel.Information, exception, messageTemplate, values);
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public void Info(string messageTemplate, params object[] values) =>
|
||||||
|
this.Information(messageTemplate, values);
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public void Info(Exception? exception, string messageTemplate, params object[] values) =>
|
||||||
|
this.Information(exception, messageTemplate, values);
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public void Debug(string messageTemplate, params object[] values) =>
|
public void Debug(string messageTemplate, params object[] values) =>
|
||||||
this.Write(LogEventLevel.Debug, null, messageTemplate, values);
|
this.Write(LogEventLevel.Debug, null, messageTemplate, values);
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,12 @@ public interface IPluginLog
|
||||||
/// <param name="exception">An (optional) exception that should be recorded alongside this event.</param>
|
/// <param name="exception">An (optional) exception that should be recorded alongside this event.</param>
|
||||||
void Information(Exception? exception, string messageTemplate, params object[] values);
|
void Information(Exception? exception, string messageTemplate, params object[] values);
|
||||||
|
|
||||||
|
/// <inheritdoc cref="Information(string,object[])"/>
|
||||||
|
void Info(string messageTemplate, params object[] values);
|
||||||
|
|
||||||
|
/// <inheritdoc cref="Information(Exception?,string,object[])"/>
|
||||||
|
void Info(Exception? exception, string messageTemplate, params object[] values);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Log a <see cref="LogEventLevel.Debug" /> message to the Dalamud log for this plugin. This log level should be
|
/// Log a <see cref="LogEventLevel.Debug" /> message to the Dalamud log for this plugin. This log level should be
|
||||||
/// used for messages or information that aid with debugging or tracing a plugin's operations, but should not be
|
/// used for messages or information that aid with debugging or tracing a plugin's operations, but should not be
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue