3 ms·
I’ve written a sink for the Serilog structured logging library specifically with this in mind: testing logging from code. When doing TDD there is no reason to
by sandermvanvliet 6y ago
I’ve written a sink for the Serilog structured logging library specifically with this in mind: testing logging from code.
When doing TDD there is no reason to skip over logging (although that does seem to happen, everyone likes print debugging ;-) it’s just that sometimes it’s a bit clunky to which is why I wrote this tool.
It supplies a secondary package that has FluentAssertions extensions to make testing even easier.
Code/packages can be found here: https://github.com/sandermvanvliet/SerilogSinksInMemory https://github.com/sandermvanvliet/SerilogSinksInMemory
Edit: formatting