Log writer that appends each entry to a file as a single line of JSON (NDJSON). Writes are synchronous (appendFileSync) so entries are durable even when the process exits hard via process.exit(). The parent directory is created on demand.
appendFileSync
process.exit()
Private
Readonly
Write a entry to the log
Entry to write
Log writer that appends each entry to a file as a single line of JSON (NDJSON). Writes are synchronous (
appendFileSync) so entries are durable even when the process exits hard viaprocess.exit(). The parent directory is created on demand.