❔ How can i make daily log system

Hi! Im working on a customers data saving application and in my application we are writing in a textbox to save customers data and i want to make save textbox's text in the log but the problem is i need to make daily log like this today is 06.26.2023 this is folder name, in this folder has a log.txt file and in application need to change folder when the date has passed soo someone can help me for this?
4 Replies
ThєSαvícs ↝ darKSaviC
btw my main language isn't english if i did wrote bad sorry about that
Pobiega
Pobiega2y ago
Use a proper logging library, like Serilog and this is solved for you https://github.com/serilog/serilog-sinks-file here is the sink for writing to files, and it includes settings for making a rolling log
Pobiega
Pobiega2y ago
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server