the scary thing is that any module that uses these functions (or calls logging.basicConfig) will break the rest of my logging
Yes, it might, but those modules wouldn't be following good practice (which is documented). In fact, in your snippet above, you're doing it wrong - you're not supposed to attach handlers to loggers (other than NullHandler
) except from code called from if __name__ == '__main__
in the main script. Importing the code shouldn't have side-effects.
The module-level convenience functions are for short scripts, simple usage and people just getting started with logging. They are not intended for use when logging requirements go beyond this.