Skip to content

Conversation

@zao111222333
Copy link

@zao111222333 zao111222333 commented May 30, 2025

When source_location feature is turn on and .with_source_location(true) is set, logger will print filename and line number.

And I also add the example, just run

cargo run --example source_location --features source_location

You will see

2025-05-30T16:48:04.974Z WARN  [simple_logger/examples/source_location.rs:6 source_location] This is an example message.

close #76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it possible to include log record.file() / record.line()

1 participant