vovgou / loxodon-framework

An MVVM & Databinding framework that can use C# and Lua to develop games
MIT License
1.86k stars 363 forks source link

[Feature] Split the framework further #35

Closed ApprenticeGC closed 1 year ago

ApprenticeGC commented 1 year ago

Thanks to provide such a wonderful package for making mvvm work flawlessly in Unity. After adjusting the current project, I find out that the use of Microsoft.Extension.Logging for logging and Message Pipe for message publishing/subscribing will be more suitable. I am just wondering if the core part of the framework can be further split so that the logging, messaging etc. could be extracted. Or providing a way to replace them with other solution maybe?

vovgou commented 1 year ago

Please reimplement the ILogFactory interface to support Microsoft.Extension.Logging.

class MicrosoftLoggingFactory : ILogFactory{

}

LogManager.Registry(new MicrosoftLoggingFactory());

image

About the Messaging system, this is an optional module, you can integrate any messaging system you like into my framework.