diff --git a/CoDepend/.codepend/snapshot b/CoDepend/.codepend/snapshot index aa638e3..e4f9f2e 100644 Binary files a/CoDepend/.codepend/snapshot and b/CoDepend/.codepend/snapshot differ diff --git a/CoDepend/Domain/Interfaces/ILogger.cs b/CoDepend/Domain/Interfaces/ILogger.cs new file mode 100644 index 0000000..14ebb3d --- /dev/null +++ b/CoDepend/Domain/Interfaces/ILogger.cs @@ -0,0 +1,8 @@ +namespace CoDepend.Domain.Interfaces; + +public interface ILogger +{ + void LogInformation(string input); + void LogWarning(string input); + void LogError(string input); +} \ No newline at end of file diff --git a/CoDepend/Infra/Logger.cs b/CoDepend/Infra/Logger.cs new file mode 100644 index 0000000..bf81e42 --- /dev/null +++ b/CoDepend/Infra/Logger.cs @@ -0,0 +1,23 @@ +using System; +using CoDepend.Domain.Interfaces; + +namespace CoDepend.Infra +{ + public class Logger : ILogger + { + public void LogInformation(string input) + { + Console.WriteLine($"INFO: {input}"); + } + + public void LogWarning(string input) + { + Console.WriteLine($"WARN: {input}"); + } + + public void LogError(string input) + { + Console.Error.WriteLine($"ERROR: {input}"); + } + } +} \ No newline at end of file