#6622 Logger refactoring: simplified LogTest

Cannot add tests for the screen backend because I would need to mock the session, which is not possible right now because it's all static stuff.