Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose which inputs to log #23

Open
TedDriggs opened this issue Jun 24, 2020 · 0 comments
Open

Choose which inputs to log #23

TedDriggs opened this issue Jun 24, 2020 · 0 comments

Comments

@TedDriggs
Copy link
Contributor

I'd like to use log-derive to log a specific input to this function, but I don't want to grab the other two arguments.

Ideally, I think I'd like to write:

    #[logfn_inputs(Trace, fmt = "Resolving {}", args(order))]
    pub fn resolve(
        &mut self,
        context: &'a ResolverContext<'a>,
        order: &'a MappedMainOrder,
    )

However, being able to skip arguments would also work. It's not quite as simple as being able to skip self since I also don't want to log the context. Is this something that's aligned with log-derive, or should I use a normal macro instead?

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

No branches or pull requests

1 participant