Skip to content

Commit

Permalink
feat: add trail log
Browse files Browse the repository at this point in the history
  • Loading branch information
cameri committed Dec 23, 2022
1 parent 1f7bbf6 commit 165dc4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/validator/trail-log.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { PathLike, writeFileSync } from 'fs'

export class TrailLog {
public constructor(
private readonly path: PathLike | number
) {}

public append(data: Buffer) {
writeFileSync(this.path, data)
}
}

0 comments on commit 165dc4f

Please sign in to comment.