pub fn init(directory: &Path) -> Result<()>
Starts logging to directory and records panics. Later calls do nothing.
directory