创建日志文件的问题 [英] problem with create log files

查看:95
本文介绍了创建日志文件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Nlog创建日志文件。当我从我的电脑上运行项目但是如果我在本地发布并访问时间日志而不是create.it意味着如何创建日志本地托管网站?请帮帮我?我正在使用带有剃刀的mvc。

i used Nlog for creating log files.it works when i run the project from my pc but if i publish locally and accessing the pages that time log not create.it means that how to create log locally hosted site? plz help me?. i m using mvc with razor.

推荐答案

may be due to below issue nt working
check the permission issue
<nlog throwExceptions="false" />   needs to False in config file
In the <targets > node in config file is properly mention the file .


这篇关于创建日志文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆