mochilogfile2

Write newline delimited log files, ensuring that if a truncated entry is found on log open then it is fixed before writing.

Write newline delimited log files, ensuring that if a truncated entry is found on log open then it is fixed before writing. Uses delayed writes and raw files for performance.

Functions


close(X1::Handle) -> ok

Close the log file referenced by Handle.

name(X1::Handle) -> string()

Return the path of the log file.

open(Name) -> Handle

Open the log file Name, creating or appending as necessary. All data at the end of the file will be truncated until a newline is found, to ensure that all records are complete.

write(X1::Handle, IoData) -> ok

Write IoData to the log file referenced by Handle.

Bob Ippolito bob@mochimedia.com
View Functions