Files
QuantScan-Pro-/log_viewer.ts
T

5 lines
185 B
TypeScript
Raw Normal View History

2026-05-29 11:22:12 -07:00
import fs from 'fs';
const text = fs.readFileSync('error.log', 'utf8');
const errIdx = text.lastIndexOf('Error');
console.log(text.substring(Math.max(0, errIdx - 500), errIdx + 1500));