Skip to content

[Feature Request] Add global logging option, LogFailures, LogSuccess to simplify .Log() everywhere #255

Description

@Robin-CSPlus

Hi,

I see that when you want to log a result, you have to suffix it with a call to .Log(), however in my codebase I would like to do this for all failures in the entire system.

It would be great if I could specify globally if results should be logged, something like:

Result.Setup(cfg => {
    cfg.Logger = myLogger;
    cfg.LogSuccess = false;
    cfg.LogFailures = true; 
});

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