How to log in LanguagePlatform.TranslationMemoryApi for Machine Translation Provider

How can you log within a plugin that uses the LanguagePlatform.TranslationMemoryApi SDK for Trados 2021.

I tried to implement the NLog class used in the DeepL Community example from Github but there is no file created during runtime.

Sdl-Community/Log.cs at master · sdl/Sdl-Community (