dpc / mioco.pre-0.9

Scalable, coroutine-based, asynchronous IO handling library for Rust programming language. (aka MIO COroutines).
Mozilla Public License 2.0
457 stars 30 forks source link

Help with disabiling logging in compile time. #121

Open dpc opened 8 years ago

dpc commented 8 years ago

It is possible to disable logging in compile time, so even the checks if log level is sufficient won't be compiled in. Both mio and mioco are using logging (trace, debug levels) a lot. For benchmarking/production it might be useful to investigate.

We could at least document well how to do it.

dpc commented 8 years ago

https://github.com/rust-lang-nursery/log/pull/58

dpc commented 8 years ago

https://github.com/rust-lang-nursery/log/blob/master/src/lib.rs#L885