sfackler / rust-log-panics

Apache License 2.0
52 stars 14 forks source link

Feature for logging to syslog? #1

Closed jwilm closed 7 years ago

jwilm commented 7 years ago

Hey @sfackler,

I'm thinking about adding syslog panic logging to my project, and I was wondering if you'd be interested in a patch that adds it to this crate behind a feature gate. What do you think?

sfackler commented 7 years ago

This just uses the log crate, so it seems like the way to do that would be to have a logger implementation that hits syslog. I think there may be some existing crates like that, and there's an outstanding issue on log4rs to add a syslog appender that's just blocked on an implementation.

jwilm commented 7 years ago

Interesting! So one would configure an appender for the log_panics module which directs to syslog while ignoring everything else. That sounds way better.