Envlogger
Port of `env_logger` as a `slog-rs` drain.
Install / Use
/learn @slog-rs/EnvloggerREADME
slog-envlogger - Port of env_logger as a slog-rs drain
env_logger is a de facto standard Rust logger implementation, which allows
controlling logging to stderr via the RUST_LOG environment variable.
This is a fork of env_logger that makes it work as a slog-rs drain.
Notable changes:
- Support for
slog-stdlogto provide support for legacyinfo!(...)like statements. envloggerdoes not do any formatting anymore:slog-envloggercan be composed with any otherslog-rsdrains, so there's no point for it to provide it's own formatting. You can now output to a file, use JSON, have color output or any other future thatslogecosystem provides, controlling it viaRUST_LOGenvironment var.
Status & news
Warning: Documentation has been been left mostly untouched, which means some places of it might be confusing.
How to use
See examples directory.
The simplest way to convert existing project to use slog-rs+slog-envlogger
is shown in
simple example
For more proper (and powerful) version see
proper example
Using slog-stdlog scopes you can make parts of the code log additional information (see scopes example):
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
