Skip to content

Commit 7b62a58

Browse files
committed
docs: example now use verbose to print send log to terminal
1 parent e109c35 commit 7b62a58

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

examples/client_from_config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
fn main() {
22
// Create a new Logdash client with default configuration
3-
let (l, m) = logdash::create_logdash(logdash::Config::default().api_key("Your Api Key".into()));
3+
let (l, m) = logdash::create_logdash(
4+
logdash::Config::default()
5+
.api_key("Your Api Key".into())
6+
.verbose(true),
7+
);
48

59
// Send an info log message
610
l.info("Rust SDK example");

examples/client_fron_env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {
22
// Create a new Logdash client with default configuration
3-
let (l, m) = logdash::create_logdash(logdash::Config::default());
3+
let (l, m) = logdash::create_logdash(logdash::Config::default().verbose(true));
44

55
// Send an info log message
66
l.info("Rust SDK example");

0 commit comments

Comments
 (0)