// Copyright (c) 2022 bradson // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. using JetBrains.Annotations; namespace FisheryLib; [PublicAPI] public static class Log { public static void Message(string message) => Config.Message(message); public static void Warning(string message) => Config.Warning(message); public static void Error(string message) => Config.Error(message); [PublicAPI] public static class Config { public static Action Message { get; set; } = static text => Verse.Log.Message(text); public static Action Warning { get; set; } = static text => Verse.Log.Warning(text); public static Action Error { get; set; } = static text => Verse.Log.Error(text); } }