-
Couldn't load subscription status.
- Fork 97
slog v2
Dawid Ciężarkiewicz edited this page Mar 17, 2017
·
28 revisions
Slog v2 is striving to be usable and in good shape now. API breaking changes between 2.0.0-x versions are possible, but if you use ~ operator you should not have to deal with unexpected breakage.
# all core improvements and ideas implemented; hopefully no more breaking changes coming;
slog = "2.0.0-2.0"
slog-async = "2.0.0-2.0"
slog-scope = "2.0.0-2.0"
slog-json = "2.0.0-2.0"
slog-bunyan = "2.0.0-1.0"
# some breaking changes still possible
slog-term = "2.0.0-2.0"
slog-stdlog = "2.0.0-0.2"
slog-envlogger = "2.0.0-1.0"
Slog v2 will is being developed in the 0.x.y model, that was used to release 1.0.0. slog 2.0.0-1.0 should be treated as 0.1.0 version was, just working toward 2.0.0 release.
It's recommended to use the following to specify the dependency on pre-release versions of crates ported to slog. eg.
slog = ~2.0.0-1"
- Refactored key-value pairs traits and structures
- Renamed some types
- Support chaining of
OwnedKVLists - Added associated
Oktype toDrain - Refactored
Recordto optimize performance on async operations - Minimal rustc version required:
1.15.0 -
DrainExthas been removed and utility methods moved directly toDrain
-
slog-extrahas been renamed toslog-asyncsince that's the only functionality it contained. -
slog-streamis obsoleted and won't be used inslog v2at all. It was a wrong abstraction.Decoratorsfunctionality will be moved directly toslog-term. -
slog-termwill provide openiotraits to allow multiple terminal / file writing backends.