JsonlAuditSink#
- class scikitplot.agent.JsonlAuditSink(path, *, fsync=False)[source]#
Append records to a JSON Lines file, one canonical line each.
- Parameters:
- pathstr or os.PathLike
The file; created if missing, never truncated.
- fsyncbool, default=False
Call
os.fsyncafter each record, so it survives a crash of the machine and not only of the process.
- Parameters:
path (str | os.PathLike[str])
fsync (bool)