Skip to content

Console, logger, shell architecure #10512

@nordic-krch

Description

@nordic-krch

Relations between consoles, logger and shell must be clarified as it generates a lot of confusion as it is now.

Topics to clarify:

  • what is console?
  • Is it a 'standard io' and thus should be single instance or it's just an 'io' but there is one 'default' (the console).
  • What's the purpose of console? Any other use cases than logging and shell?

Current issues with console:

  • byte API - slow. As logger backend candidate throughput must be significantly improved.
  • multiple consoles can be enabled but actually one will be used (__stdout_hook_install)
  • as console is a relatively low level module it is strange to see references to mcumngr in uart_console.c

It is somehow related to #10480. User expects that enabling shell commands in a module will lead to shell being enabled but as shell is multi-instance it should enable shell with console backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions