Fixed #21429 -- Added builtin logging support to BaseCommand.

https://code.djangoproject.com/ticket/21429
Wondering if the styling should be handled by a `logging.Formatter` instance attached to the `command` handler.