79651842

Date: 2025-06-03 20:13:35
Score: 0.5
Natty:
Report link

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.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cosimos Cendo