Skip to content

Support plaintext, log-friendly, format for traceback #1851

@s-fleck

Description

@s-fleck

rlang tracebacks look great in the CLI, but they are not very log friendly.

When logging it's relatively hard to get a nice readable output. paste(cli::ansi_strip(format([trace](rlang::trace_back()))), collapse = "\n") kinda works and is good enough, but it would be nice to have some argument in the format method to just switch of all color output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions