[−][src]Function syslog_loose::parse_message_with_year
pub fn parse_message_with_year<F>(input: &str, get_year: F) -> Message<&str> where
F: FnOnce(IncompleteDate) -> i32 + Copy,
Parse the message.
Arguments
- input - the string containing the message.
- get_year - a function that is called if the parsed message contains a date with no year. the function takes a (month, date, hour, minute, second) tuple and should return the year to use.