Creating NLog File - Anyone Using It?

Discussion in 'Site Programming, Development and Design' started by cobalt, Mar 15, 2011.

  1. On the test environment I write to a log file using NLog. When deployed the log file was not created.
    Questions.
    1. Is it a path issue? I use the path defined in the site manager- Path to root: and add the directory tree from there.
    E:\\Web\[web name]\[dir other hosted site]\Files\Secure\mylogfile.log"
    If this is incorrect, how should a well formed path look?

    2. Is it a rights issue? Saw this "http://support.Winhost.com/KB/a890/acl-was-altered-after-using-vs-web-deploy.aspx", could this be the problem?

    Thanks.
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    How did you deploy your site? Did you use web deploy and Visual Studio? And what error are you getting? Give us a full copy of the error message.
     
  3. Hi, I used Web Deploy, there. The logger now works, thanks
     
  4. Cool, glad you got it to work.
     

Share This Page