ekg-lib

log

Logging helpers and configuration used across ekg_lib.

These utilities standardize logging behavior for the various parsers, pipelines, and tools.

Main Functions

Basic Logging

Structured Logging

Error Handling

Usage

from ekg_lib.log import log, log_item, log_iri, log_error

# Basic logging
log("Processing started")
log_item("Dataset", "my-dataset")
log_iri("Graph IRI", "https://kg.example.com/graph/123")

# Error logging
try:
    # some operation
    pass
except Exception as e:
    log_error(f"Operation failed: {e}")