Your approach to logging

43 points ArtisticHamster

What's your approach to logging (I am coming from Java to Rust)? Namely:

  • Which logs do you keep in production code?
  • Which libraries do you use for it?
  • How do you manage what's logged?
  • How do you minimize performance impact of it?

P.S. So far, it looks like env_logger looks very simplistic, and log4r too complicated, so that's why I am asking it here.