Copied! You can phone capabilities described in the module amount, which are hooked to the foundation logger, but extra the widespread exercise is to acquire a dedicated logger for every of one's resource files: There isn’t a fairly easy technique to flush the stream in Python two, since the print statement doesn’t allow for it by by itself.