Retrieves a logger with the given name, or the root logger if no name is given.Args:
name: The name of the logger to retrieve.Returns:
The logger with the given name, or the root logger if no name is given.Example:
Basic Usage of get_logger
Copy
Ask AI
from marvin.utilities.logging import get_loggerlogger = get_logger("marvin.test")logger.info("This is a test") # Output: marvin.test: This is a testdebug_logger = get_logger("marvin.debug")debug_logger.debug_kv("TITLE", "log message", "green")