Flow.Launcher/Plugins/Flow.Launcher.Plugin.WindowsSettings/Log.cs
2025-04-13 17:59:39 +08:00

25 lines
696 B
C#

using System;
using System.Runtime.CompilerServices;
namespace Flow.Launcher.Plugin.WindowsSettings
{
public static class Log
{
private static IPublicAPI? _api;
public static void Init(IPublicAPI api)
{
_api = api;
}
public static void Exception(string message, Exception exception, Type type, [CallerMemberName] string methodName = "")
{
_api?.LogException(type.FullName, message, exception, methodName);
}
public static void Warn(string message, Type type, [CallerMemberName] string methodName = "")
{
_api?.LogWarn(type.FullName, message, methodName);
}
}
}