Skip to content

Choose which inputs to logΒ #23

@TedDriggs

Description

@TedDriggs

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions