@bluGill If you have a need to mock a logger, you probably should have an interface dedicated to those logs.
It is also recommended to have dedicated loggers used in each domain, rather than allowing logging everything and everywhere, which may lead to sanitizing log inputs everywhere to be in control and not expose any security issues.
But in many cases that may also be overkill. As always, it depends.