log4net not working

后端 未结 13 1701
轮回少年
轮回少年 2020-12-07 08:04

Hey I have this configuration in my web.config


    

        
13条回答
  •  半阙折子戏
    2020-12-07 09:02

    
    

    is saying "write mylog.log to actual folder". This means that if your webapp is under IIS, then log will be written to C:\inetpub\wwwroot\appname\mylog.log.

    If log file is not there, then maybe account under which is app running doesn't have write permission on folder. You can run Process Monitor from SysInternals to see if and where a file is written.

    Also run VS in debug mode, to see if any exceptions are thrown (Debug->Exceptions->CLR Exceptions, check Thrown).

提交回复
热议问题