Flow.Launcher/Plugins/Flow.Launcher.Plugin.WindowsSettings/Log.cs
2021-12-01 06:27:51 +11:00

24 lines
722 B
C#

using System;
using System.Runtime.CompilerServices;
using Flow.Launcher.Plugin;
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);
}
}
}