Function fritzbox_logs::parse [] [src]

pub fn parse<B: BufRead, Tz: TimeZone>(
    buf: B,
    tz: Tz
) -> Result<Vec<Entry>, Error>

Parses an input stream. Logs are expected to be lines in the form of [date] [time] [message] (where date is dd.mm.yy and time is hh:mm:ss). If a line doesn't follow the format an error is returned. Timezone should be adjusted by a tz parameter. Unknown messages are also added to the result (although an info log is printed).