Use the format_source_path() function on your builder:
env_logger::builder()
.format_source_path(true)
.init();
The logs will look like
[2025-06-03T20:06:14Z ERROR path/to/file.rs:84 project::module] Log message
Use the other format_
methods to further customize the look of your logs.