Skip to main content

Module private_log

Module private_log 

Source

Functionsยง

flush_and_sync
Flush a BufWriter wrapping a File, then fsync the underlying file.
open_append
Open or create a file for appending at path, optionally syncing after every write. Use this for append-only logs like audit.log.
private_log_options
Open options for an owner-only log or lock file: created 0600 and never opened through a link at the final component (Unix). Callers add the access mode they need.
restrict_to_owner
Tighten a log created by an earlier version at the default mode. No-op outside Unix.