Skip to content

Instantly share code, notes, and snippets.

View przygienda's full-sized avatar

Tony Przygienda przygienda

  • Silicon Valley
View GitHub Profile
#[macro_use]
extern crate slog;
extern crate slog_term;
extern crate slog_async;
extern crate slog_kvfilter;
extern crate slog_atomic;
use slog::{Logger,LevelFilter, Level};
use slog_kvfilter::KVFilter;
use slog::Drain;
@przygienda
przygienda / slogvaluefilter.rs
Last active January 24, 2017 19:28
SLOG Rust filter that can act on key/values of the log entries ...
//! Implements an SLOG filter that can filter on values of keys.
//! Preconditions a serializer that writes out and caches values
//! of keys for an `OwnedKeyValueList`
#![feature(drop_types_in_const)]
#[macro_use]
extern crate slog;
extern crate slog_term;