def set_loglevel(ctx: Any, self: Any, value: str | None):
    """Set the log level.

    Args:
        ctx: The click context.
        self: The click command.
        value: The log level to set.
    """
    if value is not None:
        loglevel = constants.LogLevel.from_string(value)
        console.set_log_level(loglevel)
Set the log level.

    Args:
        ctx: The click context.
        self: The click command.
        value: The log level to set.
    
reflex/custom_components/custom_components.py