The logger can't use the asserts that log messages as it introduces a cyclical dependency on the logger itself.