()
| 22 | let state: Trace | false | undefined |
| 23 | |
| 24 | function stamp() { |
| 25 | return new Date() |
| 26 | .toISOString() |
| 27 | .replace(/[-:]/g, "") |
| 28 | .replace(/\.\d+Z$/, "Z") |
| 29 | } |
| 30 | |
| 31 | function file() { |
| 32 | return path.join(Global.Path.log, "direct", `${stamp()}-${process.pid}.jsonl`) |