Can't get Log4Net to work in my ASP.NET website :(

后端 未结 5 1452
终归单人心
终归单人心 2021-02-10 13:22

really simple question -> i can\'t seem to get any data from Log4Net in my ASP.NET application. I\'ve got a simple ASP.NET website, which references a class library. In this cla

5条回答
  •  终归单人心
    2021-02-10 14:17

    There are atleast 2 possible problems:

    • The way the address to the file is specified, try using an absolute path instead.
    • The process making the call needs rights to modify the file. Check that the user account making writing to the log file has rights to do so.

    To debug it I would create and empty directory, give everyone full control, configure to log to that directory. Then test it, see that it works, then gradually tighten the security to an acceptable level.

提交回复
热议问题