docs.rs failed to build sentry-slog-0.20.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
sentry-slog-0.32.3
Sentry Rust SDK: sentry-slog
Sentry slog
Integration.
The sentry slog
integration consists of two parts, the
SlogIntegration
which configures how sentry should treat
slog::Record
s, and the SentryDrain
, which can be used to create a
slog::Logger
.
NOTE: This integration currently does not process any slog::KV
pairs,
but support for this will be added in the future.
Examples
use ;
use ;
let integration = default;
let options = default.add_integration;
let _sentry = init;
let drain = new;
let root = root;
info!;
warn!;
assert_eq!;
assert_eq!;
crit!;
assert_eq!;
The integration can also be customized with a filter
, and a mapper
:
use ;
let integration = default
.filter
.mapper;
Please not that the mapper
can override any classification from the
previous filter
.
Resources
License: Apache-2.0
- Discord server for project discussions.
- Follow @getsentry on Twitter for updates