Skip to main content

enable_console_logging

def enable_console_logging(level: int=logging.INFO) -> None
Enable console logging for interactive use. This function configures the root galileo logger to output to the console with a simple formatter. This is particularly useful for REPL, IPython, and Jupyter environments where users want to see SDK logs immediately. Arguments
  • level: Logging level (default: logging.INFO)
Examples
import galileo
galileo.enable_console_logging()
# Now SDK operations will show progress and debug information

get_logger

def get_logger(name: str) -> logging.Logger
Get a logger with lazy initialization of silent defaults. This should be used by SDK modules instead of directly calling logging.getLogger() to ensure that silent defaults are applied if the user hasn’t configured logging. Arguments
  • name: Logger name (typically name)
Returns
  • Logger instance with silent defaults applied if not already configured:

is_concludable_span_type

def is_concludable_span_type(span_type: SPAN_TYPE) -> bool
Check if the span type requires conclusion (via conclude()). Arguments
  • span_type: The type of span
Returns
  • True if the span type requires conclusion, False otherwise

is_textual_span_type

def is_textual_span_type(span_type: SPAN_TYPE) -> bool
Check if the span type has a string-based input and output. Arguments
  • span_type: The type of span
Returns
  • True if the span type has a string-based input and output, False otherwise