def config_logger(filename='epquery.log', level='DEBUG'):
    """
    Configure logger using logging.basicConfig. Use only if you don't
    have your own logger in your application.

    :param str filename: Log file name
    :param str level: Logging level ('DEBUG', 'WARNING', 'ERROR', 'INFO')
    """
    import logging
    logging.basicConfig(filename=filename, filemode='w', level=level,
        format='[%(asctime)s][%(name)s][%(levelname)s] %(message)s')
