using System; using System.Collections.Generic; using System.Text; namespace splitter; public class LoggingBase( Action log, Action drawProgress ) { protected Action Log = log; protected Action DrawProgress = drawProgress; protected void LogInfo(string msg) => Log("[INFO]", ConsoleColor.Cyan, msg); protected void LogSuccess(string msg) => Log("[ OK ]", ConsoleColor.Green, msg); protected void LogWarn(string msg) => Log("[WARN]", ConsoleColor.Yellow, msg); protected void LogError(string msg) => Log("[ERR ]", ConsoleColor.Red, msg); }