[][src]Function dynerr::log

pub fn log<T: Display>(event: T, log_file: &str) -> T

Appends [event] to [log_file].

creates the file if it doesnt exist.
panics on failure to create or appending to file.
not meant to be used on its own. use logging macros instead