-
Notifications
You must be signed in to change notification settings - Fork 95
slog v2
Dawid Ciężarkiewicz edited this page Mar 8, 2017
·
28 revisions
slog = "2.0.0-1.0"
slog-async = "2.0.0-1.0"
slog-json = "2.0.0-1.0"
slog-bunyan = "2.0.0-1.0"
slog-term = "2.0.0-1.0"
slog-scope = "2.0.0-1.0"
slog-stdlog = "2.0.0-0.1"
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 dependeny on pre-release versions of crates ported to slog.
slog = "`2.0.0-x"
eg.
slog = ~2.0.0-1"
- Refactored key-value pairs traits and structures
- Renamed some types
- Support chaining of
OwnedKVList
s - Added associated
Ok
type toDrain
- Refactored
Record
to optimize performance on async operations - Minimal rustc version required:
1.15.0
-
DrainExt
has been removed and utility methods moved directly toDrain
-
slog-extra
has been renamed toslog-async
since that's the only functionality it contained. -
slog-stream
is obsoleted and won't be used inslog v2
at all. It was a wrong abstraction.Decorators
functionality will be moved directly toslog-term
. -
slog-term
will provide openio
traits to allow multiple terminal / file writing backends.