Geal / rust-syslog

Send syslog messages from Rust
MIT License
110 stars 55 forks source link

Fix and add example for RFC5424 formatter #44

Closed lukesteensen closed 5 years ago

lukesteensen commented 5 years ago

The U: Display, F: LogFmt<U> bound on the different transport functions was preventing them from working with Formatter5424, which implements LogFormat<(i32, StructuredData, T: Display)>.

I also added another simple example that would have shown the compilation error.

Geal commented 5 years ago

Thanks!