human
Give me a Python function to 3 get a streamhandler from logging.
assistant
Here is a Python function to 3 get a streamhandler from logging

import logging

def get_logger(name):
    """Gets a logger from the global logger dictionary.

    If the logger is not found, a new one is created.
    """
    return logging.getLogger(name)

# Enter the name
name = "my_logger"

# Calling the function
logger = get_logger(name)

#Remember to inspect code for bugs.