Logs function calls to a CSV file — easy to open in Excel, import to Pandas, or pipe to other tools.
CSVSink — append log entries to a CSV filepip install nfo
python examples/csv-sink/main.py
from nfo import Logger, log_call, CSVSink
sink = CSVSink(file_path="logs.csv")
logger = Logger(name="csv-demo", sinks=[sink])
@log_call
def multiply(a: int, b: int) -> int:
return a * b