Skip to content

Commit

Permalink
add demo for paris feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Mar 5, 2022
1 parent 40808ea commit 568309c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/paris_demo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "paris_demo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
simplelog = { path = "../../", features = ["paris"] }
8 changes: 8 additions & 0 deletions examples/paris_demo/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fn main() {
simplelog::TermLogger::init(simplelog::LevelFilter::Debug,
simplelog::Config::default(),
simplelog::TerminalMode::Mixed,
simplelog::ColorChoice::Auto).expect("Failed to start simplelog");

simplelog::info!("I can write <b>bold</b> text or use tags to <red>color it</>");
}

0 comments on commit 568309c

Please sign in to comment.