logging_config
Adapted from the Griptape AI Framework documentation.
Source Code in griptape/configs/logging/logging_config.py
@define class LoggingConfig: logger_name: str = field(default="griptape", kw_only=True) def __attrs_post_init__(self) -> None: logger = logging.getLogger(self.logger_name) logger.setLevel(logging.INFO) logger.propagate = False logger.addHandler(RichHandler(show_time=True, show_path=False))
logger_name = field(default='griptape', kw_only=True)
class-attribute instance-attribute
attrs_post_init()
Source Code in griptape/configs/logging/logging_config.py
def __attrs_post_init__(self) -> None: logger = logging.getLogger(self.logger_name) logger.setLevel(logging.INFO) logger.propagate = False logger.addHandler(RichHandler(show_time=True, show_path=False))
- On this page
- attrs_post_init()
Could this page be better? Report a problem or suggest an addition!