Comments (2)
Hello. You have two solutions for this. In a production environment, you will have nlog.config file deployed as well, so you can change absolute locations to the right ones.
Or you can change these absolute paths with relative ones:
<target name="logfile" xsi:type="File" fileName="..\logs\${shortdate}_logfile.txt" layout="${longdate} ${level:uppercase=true} ${message}"/> </targets>
from .net-core-series.
Thank you! I will try using the absolute path method for now
from .net-core-series.
Related Issues (9)
- Shows error after first run: HOT 1
- Part 4: It shows error the UseMySql is not defined. HOT 1
- You Custom logging does not log the Controller name or Action name etc... HOT 1
- Customer Registration changes HOT 1
- Display customer ID and Customer ref no on customer info tab. HOT 1
- Why not separate the CRUD to Services from Repository? HOT 1
- Customer ID HOT 1
- Check Valid Ref no HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .net-core-series.