import logging

def configure_logger():
    # Configure the logger
    logging.basicConfig(
        level=logging.INFO,
        format="%(asctime)s [%(levelname)s] [%(threadName)s] - %(funcName)s:%(lineno)d -  %(message)s",
        datefmt="%Y-%d-%m %H:%M:%S",
    )

    # Create and return a logger instance
    return logging.getLogger("cs2snipe")

# Call the configure_logger function to set up the logger
logger = configure_logger()