Skip to content

Commit

Permalink
Add line number to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Dec 27, 2024
1 parent ce0ea88 commit 21f1ffd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ pub async fn run<S: AsRef<str>>(args: &[S]) -> i32 {
.format(|buf, record| {
writeln!(
buf,
"{}: <{}> {}",
"{}: <{}:{}> {}",
record.level().to_string().to_lowercase(),
record.module_path().unwrap_or("unknown"),
record.line().unwrap_or_default(),
record.args()
)
})
Expand Down

0 comments on commit 21f1ffd

Please sign in to comment.