Creating the LogService

Build a LogService that appends one time-stamped line per entry to a file named for the day, such as logs\errors\20260314.log. It asks for an IClock so tests can choose the date, and it never lets a logging problem crash the app.

Updated

Cheat sheet: Creating the LogService
Category
C#
Level
Journeyman
Tags
c-sharp, DateTime, Logging (c-sharp)