mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
23 lines
694 B
C#
23 lines
694 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);
|
|
}
|
|
}
|
|
}
|