Yarhl icon indicating copy to clipboard operation
Yarhl copied to clipboard

Logger

Open pleonex opened this issue 10 years ago • 3 comments

Implement a logger. This will be useful to report ok, warnings and errors from plugins and create reports.

  • [ ] Manage different log classes
  • [ ] Manage different domains.
  • [ ] Record optional additional data (useful for other applications like test suites)

pleonex avatar Jan 03 '16 00:01 pleonex

Make sure that the logger logs the errors when writing larger strings than allowed from the DataWriter.

pleonex avatar Mar 06 '17 01:03 pleonex

This library seems a good candidate: https://github.com/damianh/LibLog

pleonex avatar Jun 02 '18 21:06 pleonex

LibLog has been deprecated in favor of Microsoft.Extension.Logging. Yarhl should provide a static class where to set the ILoggerFactory that applications will create (by default the null provider). Every class that wants to use logging will create its own ILogger<T> from this factory in their constructor.

References to learn the tech:

pleonex avatar Apr 10 '20 17:04 pleonex