zio/zio-logging

provide example on how to test logging messages

domdorn opened this issue · 3 comments

The documentation should have a example on how to use the loggers in tests and how to do assertions on log messages.

Hi @domdorn,

with ZIO 2, logging interface is in zio core library,
you can use ZTestLogger

to test log output, please check that, and let us know if this is what your are looking for,

also in addition thank you for your hint, definitely it should be in documentation, we will work on that ...

Hi @domdorn, please let me know if this solving your problem, thank you very much.

sadly we've deleted all code that tests log output from our tests, so can't reproduce this now anymore :-/
did any change in documentation happen?