Appends audit entries as newline-delimited JSON (NDJSON) to a file.
Log rotation: when the file reaches maxSizeBytes, it is renamed to <filePath>.<timestamp>.bak before the new entry is written.
maxSizeBytes
<filePath>.<timestamp>.bak
The log file should be stored on a volume with restricted write permissions; only the server process account should have write access.
0.9.0
Private
Readonly
Serialises concurrent write calls so that stat + rename + appendFile sequences never interleave across parallel log() invocations.
log()
Write a single audit entry to the sink
Appends audit entries as newline-delimited JSON (NDJSON) to a file.
Log rotation: when the file reaches
maxSizeBytes, it is renamed to<filePath>.<timestamp>.bakbefore the new entry is written.Security
The log file should be stored on a volume with restricted write permissions; only the server process account should have write access.
Since
0.9.0