[][src]Function syslog_loose::parse_message_with_year_tz

pub fn parse_message_with_year_tz<F>(
    input: &str,
    get_year: F,
    tz: Option<FixedOffset>
) -> Message<&str> where
    F: FnOnce(IncompleteDate) -> i32 + Copy

Parse the message.

Arguments

  • input - the string containing the message.
  • tz - a default timezone to use if the parsed timestamp does not specify one
  • 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.