Normally
ILogger
instance have to be injected, but I really like global using to just call LogError()
anywhere in project. Anyway consider doing codereview.