Open Closed

How to create Log File? #6557


User avatar
0
guven.uysall created
  • ABP Framework version: v6.3.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) /
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello, I want to log the log file that ABP uses by default as new log files with the current date. Can you guide me as a method? Best Practice?


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

    Hello ,

    Can you check this ticket https://support.abp.io/QA/Questions/6544/API-Performance-Issue. In this ticket give the steps how to create a log file.

    Thank you,

  • User Avatar
    0
    guven.uysall created

    Hi, link is not working

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello , Sorry for that check this link https://code-maze.com/csharp-configure-rolling-file-logging-with-serilog/ Thanks

  • User Avatar
    0
    guven.uysall created

    Thanks your answer,

    But :)

    It created the log file on the relevant date, but it continues to write the logs to the old file. It does not write to the new file.

    writes all other logs to the old file

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    You can check this similar ticket https://support.abp.io/QA/Questions/2208/Create-log-file-one-per-day

    Thank you.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11