NLog is well documented through resources freely available on the internet such as these:
https://blog.elmah.io/nlog-tutorial-the-essential-guide-for-logging-from-csharp/
https://www.codeproject.com/Articles/4051307/NLog-Rules-and-filters
https://nlog-project.org/documentation/v4.3.0/html/R_Project_Documentation.htm
But there are some specific things all developers should be aware of to ensure that they are not writing error logs into the logs designed for another plugin. The attached PDF should provide all the information you require but if you do have questions please ask them in the dev forums.
NLog Documentation for Trados Studio