// 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/. namespace FisheryLib; public static class Log { public static void Message(string message) => _message(message); public static void Warning(string message) => _warning(message); public static void Error(string message) => _error(message); public static class Config { public static Action Message { set => _message = value; } public static Action Warning { set => _warning = value; } public static Action Error { set => _error = value; } } private static Action _message = Verse.Log.Message; private static Action _warning = Verse.Log.Warning; private static Action _error = Verse.Log.Error; }