import logging


def get_default_log_formatter(use_timestamp):
    """Creates a formatter with the default format [time] [name] [level] [message]"""
    format = "%(name)s - %(levelname)s - %(message)s"
    if use_timestamp:
        format = "%(asctime)s - " + format
    return logging.Formatter(format)