Answer the question
In order to leave comments, you need to log in
Nlog why doesn't ${basedir} work?
There is an asp.net project for logging using Nlog, installed via NuGet. In the settings I wrote
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
layout="${longdate} ${uppercase:${level}} ${message}" />
Answer the question
In order to leave comments, you need to log in
See what the EventLog, which is Windows, will write to you. Perhaps your IIS is not configured correctly, and the user does not have enough rights to write to the directory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question