Skip to content

Support log redirection #9814

Closed
Closed
@yaqwsx

Description

@yaqwsx

Related area

Core of the framework

Hardware specification

Not relevant

Is your feature request related to a problem?

The logging facilities provided by the Arduino framework are hard-coded to the main serial output. This is often unwanted (e.g. when the persistence of logs is required or the serial interface needs to be free for other purposes).

Describe the solution you'd like

Allow the user to specify a custom sink function for the logs.

Describe alternatives you've considered

I wanted to use the built-in ESP-IDF logging facilities; however, I ran into #9813

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions