logging

generics.logging

Logging utilities for CaML.

Functions

Name Description
configure_logging Configure logging for the entire application.
get_section_header Generate a formatted section header with separators.

configure_logging

generics.logging.configure_logging(level=logging.WARNING)

Configure logging for the entire application.

Parameters

Name Type Description Default
level int The logging level to use. Defaults to WARNING. Can be overridden by environment variable CAML_LOG_LEVEL. logging.WARNING

get_section_header

generics.logging.get_section_header(title, emoji='', sep_char='=', width=None)

Generate a formatted section header with separators.

Parameters

Name Type Description Default
title str The title text to display required
emoji str Optional emoji to include in the title ''
width int | None Width for the separators. If None, calculated from title length. None

Returns

Name Type Description
str Formatted header with top and bottom separators
Back to top