Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A pretty, easy-to-use logger for Rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

seanmonstar/pretty-env-logger

Repository files navigation

Crates.ioDocsMIT/APACHE-2.0Travis CI

A simple logger built on top ofenv_logger.It is configured via an environment variable and writes to standarderror with nice colored output for log levels.

example output

Usage

Add the dependency to yourCargo.toml:

[dependencies]log ="0.4"pretty_env_logger ="0.4"

Add some usage to your application:

externcrate pretty_env_logger;#[macro_use]externcrate log;fnmain(){    pretty_env_logger::init();info!("such information");warn!("o_O");error!("much error");}

Then run your app with the environmental variable set:

RUST_LOG=trace cargo run

License

Licensed under either of

About

A pretty, easy-to-use logger for Rust.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors18


[8]ページ先頭

©2009-2025 Movatter.jp