i searched the document, and find nothing, all examples uses the global Log.
is serilog discourage users to define a static log in Class, and only a global Log is good enough?
but i fell that if i can get log message with the class name is more convenient.
after a heavy effort, i find something like Serilog.Log.ForContext<>(), it return a Serilog.ILogger.
i used it, but i don't know is it the correct way? no document says about it.
also, why it returns its Serilog.ILogger, and not Microsoft's ILogger?
if uses the injected Microsoft ILogger along with a static Serilog.ILogger, it seems strange. some log use log.Information, some use log.LogInformation, some use log.Info. some use Log.Warn, some use Log.Warning.
why not unify the interface to Microsoft's ILogger?
years ago, i write java. all log lib such as log4j, logback, log4j2 can use a same interface as Slf4j.
why it acts so strange in .net? NLog has its own template way, Serilog has its own template way, and Microsoft has its own template way, why?
it is only a log, why so strange and so many differenct write ways?