<filename>wagtail_localize_git/management/commands/sync_git.py
import logging

from django.core.management.base import BaseCommand

from ...sync import SyncManager


class Command(BaseCommand):
    def handle(self, **options):
        logger = logging.getLogger(__name__)

        # Enable logging to console
        console = logging.StreamHandler()
        console.setLevel(logging.INFO)
        console.setFormatter(logging.Formatter("%(levelname)s - %(message)s"))
        logger.addHandler(console)
        logger.setLevel(logging.INFO)

        SyncManager(logger=logger).sync()

<filename>wagtail_localize_git/management/commands/sync_git.py
import logging

from django.core.management.base import BaseCommand

from ...sync import SyncManager


class Command(BaseCommand):
    def handle(self, **options):
        logger = logging.getLogger(__name__)

        # Enable logging to console
        console = logging.StreamHandler()
        console.setLevel(logging.INFO)
        console.setFormatter(logging.Formatter("%(levelname)s - %(message)s"))
        logger.addHandler(console)
        logger.setLevel(logging.INFO)

        SyncManager(logger=logger).sync()

# Enable logging to console