elichai / log-derive

A procedural macro for auto logging output of functions
https://docs.rs/log-derive
Apache License 2.0
189 stars 12 forks source link

Request for named parameters in the "fmt" string. #28

Open chirsz-ever opened 3 years ago

chirsz-ever commented 3 years ago

It would be good to allow users to write like this:

#[logfn(DEBUG, fmt="replace {old:?} with {new:?} in {s:?}")]
fn replace(s: &str, old: &str, new: &str) -> String {
    todo!()
}