add fp3 sample

This commit is contained in:
Oli Sturm
2026-04-23 18:46:08 +01:00
parent af65d696a6
commit 89faa924bc
9 changed files with 335 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
namespace CsharpFp3.Library;
public static class Logging
{
public static T LogReturn<T>(string message, T r)
{
Console.WriteLine(message);
return r;
}
public static Action<T> Output<T>(string src, string message) =>
x =>
{
Console.WriteLine($"[{src}] {message} | {x}");
};
public static void OutputError<T>(string src, T error)
{
Console.Error.WriteLine($"\e[1;31m[{src} ERROR]\e[0m {error}");
}
}