All notable changes to this project will be documented in this file.
This file's format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Allow providing the
Id
field ofLogDetails
as a literal integer as well as a quoted integer - Allow providing the
Value
field ofStatTrigger
as a literal integer as well as a quoted integer slog_extlog
now exportserased-serde
so users ofslog-extlog-derive
don't need to import that crate into their namespace
- Migrate to
syn v2.0
- Change
StatsTracker
,StatsLoggerBuilder
andStatisticsLogger
to not be bound by<T>
- Breaking change:
StatsLoggerBuilder
loseswith_log_interval()
and gainsfuse_with_log_interval<T>
, where<T>
is aStatisticsLogFormatter
. This method is only accessible with theinterval_logging
feature. - Breaking change:
StatsTracker::log_all()
now requires a<T: StatisticsLogFormatter>
bound when called.
- Breaking change:
- The statistics interval logging function is behind a feature flag (
interval_logging
) this allows users of the crate who are simply using the derive macros orxlog!
to not have to pull in a wholetokio
runtime. StatisticsLogger
creation API has changed:- Removed
StatsConfig
andStatsConfigBuilder
- Added
StatsLoggerBuilder
withfuse(logger)
to create theStatisticsLogger
- Creating a
StatisticsLogger
must be done within atokio v1.0
runtime if the interval logging is enabled
- Removed
slog_extlog
gains thederive
feature which causes it to re-export the#[derive(ExtLoggable)]
and#[derive(SlogValue)]
macros meaning there's no need to depend explicitly onslog_extlog_derive
any more
- Correct dependency between derive and main crate
- Update to 1.0 versions of
syn
andquote
- Update to
tokio
0.2 andfutures
0.3
slog_test
test methods: don't panic if log is partially written in another thread, but leave partial data for next read. Technically this is a breaking change if you useslog_test
, since methodsnew_test_logger
,read_json_values
andlogs_in_range
now accept only anIoBuffer
. However in practice callers almost certainly passed anIoBuffer
already.- (Internal) Add comment to statics created through
define_stats
macro to prevent downstream clippy failures. Also add a.cargo/config
turning on some common warnings (and fix up code, mainly comments).
- Ensure that derive log level handling still works with
slog
2.5.
- Update to 2018 edition.
- Update to latest
slog
- stop pinning to old version.
- Add the
FixedGroups
attribute toStatTrigger
, allowing for a compile-time constant value on a metric.
- Add the
BucketCounter
stat type for tracking stats grouped into numerical ranges.
- Add a
DefaultLogger
for users who don't need statistics. - Move repository homepage.
- Some small but breaking changes to stats creation API.
- No longer require an instance of the formatter type.
- Take a list of
StatsDefinitions
so users can track stats from multiple crates in one place.
- Proper
Clone
support forStatisticsLogger
- Add support for retrieving the current values of all stats.
- Initial open source release.
- Versions 3.0.0 and earlier were proprietary.