mirror of
https://gitee.com/openharmony/third_party_rust_log
synced 2024-11-23 15:50:41 +00:00
dc11b85c07
try_set_logger_raw is now set_logger and try_set_logger is now set_boxed_logger. The use_std feature is now disabled by default. The old set_logger has been removed. When we did the crate evaluation for log, we wanted to add more variants of set_logger that e.g. panicked by default, but I'm no longer convinced that's a good idea. There are going to be very few instances of actually calling these methods explicitly, since each logger implementation should be providing their own init method that calls them. Having a huge constellation of functions that all do basically the same thing just makes things really confusing. We also don't want to encourage logger implementations to only provide an init function that panics because a common way of working with logging in tests is to try to init the system in each test and ignore the result. |
||
---|---|---|
.. | ||
max_level_features | ||
filters.rs |