def log(self, msg, level=2):
        if self.verbosity >= level:
            self.stdout.write(msg)
Small log helper
dataset/ETHPy150Open django/django/django/contrib/staticfiles/management/commands/collectstatic.py/Command.log