ekglib

log

Logging helpers and configuration used across ekglib.

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

Main Functions

Basic Logging

Structured Logging

Error Handling

Usage

from ekglib.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}")