Base solution for your next web application
Open Closed

Application stops logging anything in the Log.txt file #3923


User avatar
0
bilalhaidar created

Hello,

For some reason, the application is not logging anything in the Log.txt file.

I even deleted the log file and then the application is not creating a new one.

Any hints to where I should be looking to help resolve this issue?

Thanks


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bilalhaidar,

    Is it happening on the production environment ? Maybe your app does not have write permission on hte log folder ?

  • User Avatar
    0
    bilalhaidar created

    Hello, It is happening in the dev environment. For some reason, it stopped even creating the log file if I delete it.

    Thanks Bilal

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bilalhaidar,

    Could it be writing logs to any other directory ? Is your project MVC 5.x or ASP.NET Core ? If it is ASP.NET Core, do you use .Net 4.6.1 or .Net Core ?

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Hi Ismail,

    I am using ASP.NET Core .NET 4.6.

    I cannot find the log anywhere. Is there a specific file I should check to make sure of the path? I only checked web.config and the path is correct. The logging before was happening inside bin folder then AppData then Log etc.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bilalhaidar,

    I will check it again. If I cannot reproduce this, I will ask you to send your project to us via email if possible.

    Thanks.