as discussed imho this logic should either be a service or be moved to a protected method which receives the stream, loglevel and logger service name