I recently used Liblog solution in my project to get logging abstraction. Everything is working fine but i have one small question.
My project is .Net Standard 2.0, hence i defined a compiler symbol "LIBLOG_PORTABLE"
After adding this, i am not able to call LogProvider.GetCurrentClassLogger();
as it is not available after above declaration.
Hence now i am accessing my logger using following way.
LogProvider.SetCurrentLogProvider(new Logging.LogProviders.SerilogLogProvider());
Logger = LogProvider.GetLogger("SerilogLog");
However, i am just confused how it supports logging abstraction for .Net Standard 2.0 if i am explicitly providing all these. Is it a correct way of doing it or i am missing something?