Updated Module engine

This commit is contained in:
2024-08-10 20:27:59 +03:00
parent 18a059af0e
commit 9c98d2e219
16 changed files with 355 additions and 124 deletions

View File

@@ -7,7 +7,18 @@ namespace LoggerModule
{
public string Name => "LoggerModule";
public ModuleType ModuleType => ModuleType.Logger;
public IDictionary<string, string> MethodMapping => new Dictionary<string, string>
{
{"BaseLog", "LogMessage"},
{"LogWithTypeAndFormat", "LogMessageWithTypeAndFormat"},
{"LogWithType", "LogMessageWithType"},
{"LogWithSender", "LogMessageWithSender"},
{"LogWithTypeAndSender", "LogMessageWithTypeAndSender"},
{"BaseLogException", "LogExceptionWithSenderAndFullStack"},
{"SetPrintFunction", "SetOutFunction"},
};
const string _LogFolder = "./Data/Logs/";
const string _LogFormat = "{ThrowTime} {SenderName} {Message}";