Closed hyblocker closed 2 years ago
C# allows you to make significantly more verbose logging, which would likely be ideal to be able to troubleshoot issues much faster.
For example you might want to append this to the function signature:
public static void Info(string msg, [CallerLineNumber] int lineNumber = 0, [CallerFilePath] string filePath = "", [CallerMemberName] string memberName = "") { Console.WriteLine(FormatLogMessage(msg, lineNumber, filePath, memberName); }
Which would then allow you to get log messages such as:
INFO MyClass.cs::MyMethod:12] Hello World!
Additionally you might want to refactor the logger outside of the OscMultitool.Services namespace.
OscMultitool.Services
Fixed in commit
C# allows you to make significantly more verbose logging, which would likely be ideal to be able to troubleshoot issues much faster.
For example you might want to append this to the function signature:
Which would then allow you to get log messages such as:
Additionally you might want to refactor the logger outside of the
OscMultitool.Services
namespace.