pub fn log_reopen(path: &Path, signal: Option<c_int>) -> Result<Reopen<File>>
Expand description
Convenience method for opening a re-openable log file with common options.
The file opening is equivalent to:
std::fs::OpenOptions::new()
.write(true)
.create(true)
.append(true)
.open("filename")
See OpenOptions
for more information.
This function is not available on Windows, and it requires the reopen-03
feature to be enabled.