I've been loving NLog in my other applications, and now I'm trying to use it in my SharePoint (MOSS 2007) web parts. The problem is, I can't seem to get any output from it. Knowing that SharePoint plays around with the locations of files, etc., I've gone down the list of locations where NLog looks for configuration information, but none of them seem to make any difference.
Can anybody out there confirm that this combination actually works, or should I stop beating my head against the wall?
Thanks for the confirmation. I've got most of this already (including the internalLogFile - which produces nothing), but I'll double-check. (Particularly, I'm only assuming my installer correctly put the NLog DLL in the GAC.)
When you say "web.config for the site", could you specify exactly where that is - just to verify I'm looking at the same place? I'm assuming that means "Inetpub/wwwroot/wss/VirtualDirectories/my.sharepoint.local80"?
Thanks for the tips :-) The NLog assembly wasn't getting installed - and I'm used to getting an ugly ASP.NET stack trace when that happens. I added the NLog and another support assembly to the .wsp and everything's working fine now.