Skip to content

Feature Request: Add more options to make output log a bit narrower #164

@0blu

Description

@0blu

image

I would really liked it if those features were implemented:

  • Omit function parameters, only print the namespace/name
  • Add source base dir.
    So it does not print D:\Programming\GitHub\Project\src\stuff\abc\main.c
    But rather src\stuff\abc\main.c
  • Omit std functions

Maybe add a struct of all those settings to the print() method.
Depending on how fancy those settings should be definable you can do something like this

// default settings
cpptrace::generate_trace().print();

// custom settings
auto base_dir = cpptrace::current_file("../../.."); //?
cpptrace::generate_trace().print(
    cpptrace::trace_print_settings()
        .set_output(std::cout)
        .set_color(false)
        .set_project_dir(base_dir)
        .set_omit_out_of_project_functions(true)
);

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions