Is console.debug() allowed in a web-extension?

Years ago a reviewer from AMO said logging is not allowed:

Your add-on prints debugging information to the Console, which is generally not allowed in production add-ons.

Is this still a policy?
Is there a way to enable debug output per extension?
How do web-extension developers implement logging that can be enabled at runtime?
My extension has “storage” privilege, should I keep a flag there?