def console_logger(level='WARNING'):
    """
    *Setup and return a console logger*

    **Key Arguments**

    - ``level`` -- the level of logging required
    

    **Return**

    - ``logger`` -- the console logger
    

    **Usage**

    ```python
    from fundamentals import logs
    log = logs.console_logger(
        level="DEBUG"
    )
    log.debug("Testing console logger")
    ```
    
    """
    import logging
    import logging.config
    import yaml
    try:
        yaml.warnings({'YAMLLoadWarning': False})
    except:
        pass
    loggerConfig = """
  version: 1
  formatters:
      console_style:
          format: '* %(asctime)s - %(levelname)s: %(pathname)s:%(funcName)s:%(lineno)d > %(message)s'
          datefmt: '%H:%M:%S'
  handlers:
      console:
          class: logging.StreamHandler
          level: """ + level + """
          formatter: console_style
          stream: ext://sys.stdout
  root:
      level: """ + level + """
      handlers: [console]"""
    logging.config.dictConfig(yaml.load(loggerConfig))
    logger = logging.getLogger(__name__)
    return logger
