vibeqc.structured_log¶
- vibeqc.structured_log(path=None, *, enabled=None)[source]¶
Activate a fresh
StructuredLogfor the duration of the block; close on exit.Resolution order for the destination path:
Explicit
pathargument when notNone.$VIBEQC_STRUCTURED_LOGenv var.No file written — the yielded
StructuredLogis disabled, everyemitis a no-op.
- Parameters:
- Return type:
Example
import vibeqc as vq with vq.structured_log("h2o.scf.jsonl") as log: vq.run_rhf(mol, basis, opts) # h2o.scf.jsonl now contains banner + scf_iter + ... records.