Nlog exports base on method of someone class

2 messages Options
Embed this post
Permalink
lisp

Nlog exports base on method of someone class

Reply Threaded More More options
Print post
Permalink
Can I appoint one mehtod of class to export to a log file? So to the same level log info of one class
will be able to export to multi-files.
I will appreciate for your help.
Jaroslaw Kowalski

Re: Nlog exports base on method of someone class

Reply Threaded More More options
Print post
Permalink
I don't think I understand the question - do you have access to the class's source code or can you otherwise modify the class? If so, yes - you can add a logger to the class, add logging statements and configure NLog routing for that single class. If not - NLog itself will not be enough to solve this problem.