dna-framework icon indicating copy to clipboard operation
dna-framework copied to clipboard

Improve logging: log file rotation, log exception stack trace and more

Open adadurov opened this issue 6 years ago • 2 comments

Improve logging to files:

  • log file rotation
  • log exception stack trace
  • log timestamp with milliseconds
  • log message level (ERROR, TRACE, DEBUG, INFO etc.)
  • prepare to log asynchronously

adadurov avatar Feb 10 '19 14:02 adadurov

@adadurov Perhaps take a look at NLog in #19, the file log rotation handling is built into it

https://github.com/NLog/NLog/wiki/File-target

xaoseric avatar Mar 11 '21 19:03 xaoseric

@adadurov Perhaps take a look at NLog in #19, the file log rotation handling is built into it

https://github.com/NLog/NLog/wiki/File-target

Thank you, @xaoseric, I know about NLog and other logging solutions. I also understand that the logging implementation here is very basic, looking more like a PoC, so I wanted to contribute my 2 cents to the PoC. But I may be wrong in my understanding or assumptions.

adadurov avatar Mar 12 '21 08:03 adadurov