Files
Fishery/Source/FisheryLib/Log.cs
T
bbradson cdf209eb02 Added FisheryLib.Collections.FishTable and Mono.Cecil extension methods
A bit of refactoring has been done too
2023-06-03 20:10:58 +02:00

26 lines
872 B
C#

// 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<string> Message { get; set; } = static text => Verse.Log.Message(text);
public static Action<string> Warning { get; set; } = static text => Verse.Log.Warning(text);
public static Action<string> Error { get; set; } = static text => Verse.Log.Error(text);
}
}