Yes, if you created a framework, that will
call your code, yes, it can log. It can also provide a logger implementation, or request one from you, whatever it deems better, and your code must comply.
But a library, that your code will call, must not log. Ever. That includes any portion of a framework that you have to call, but it using services upper on the stack can make this rule hard to see. It must not include a logger implementation, and not call any global logger supplied from you.
It seems we are arguing over the definition of those two cases.