log_reopen1

Function log_reopen1 

Source
pub fn log_reopen1<S: IntoIterator<Item = c_int>>(
    path: &Path,
    signals: S,
) -> 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 requires the reopen-1 feature to be enabled.