I run into the same issue described there: Another StackOverflow Question
I need to log to file and method calling. The problem is that there are lot of "debug" level logging messages which are more detailled. I need them to log to file. But the method should only receive logging messages above debug level.
So the SplitGroupTarget doesn't fullfill my requirements. Is there any solutions or workarounds for this problem?
Additionally i found this entry in the NLog forum with a similiar problem in 2006 - but with no answer yet: NLog Forum
EDIT1: I forgot to mention that i want to configure this programmatically. According to your answer i tried it in the following way, but only the last target gets logged.
SimpleConfigurator.ConfigureForTargetLogging(methodCallTarget, LogLevel.Debug);
SimpleConfigurator.ConfigureForTargetLogging(fileTarget, LogLevel.Debug);