Commit Graph

3 Commits

Author SHA1 Message Date
Anthony DiGirolamo
5a4324f666 pw_console: Open any Python logger interactively
- File > Open Logger menu that displays all known python loggers.
  Clicking one opens a new log window with that logger.

- File > Log Table View > Show Python File and Logger options.
  These preferences toggle displaying each log line's
  Python logger and file:linenumber columns in table view.

- Set logging.lastResort to a file handler. This prevent loggers
  with no handlers from outputting text to stderr and corrupting
  the prompt_toolkit UI.

Change-Id: I6f36384764621b0f62ad6c51687b5b125c91da44
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/69280
Reviewed-by: Joe Ethier <jethier@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
2021-12-04 16:57:54 +00:00
Anthony DiGirolamo
5c653f6983 pw_console: Config file loading; table settings
Working config settings:
- spaces_between_columns
- column_order
- column_colors

Change-Id: I6cb7140fa01e069353c2cb91eec74cd6d96b36b3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/62920
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-10-02 00:34:25 +00:00
Anthony DiGirolamo
a507b3622c pw_console: Refactor log pane classes
- Refactor log_container.py into log_view and log_store
- Move LogPane toolbar classes into log_pane_toolbars.py
- Add new tests for LogView and LogStore.

No-Docs-Update-Reason: Refactoring
Change-Id: I5187f9638558ea4ef7f0dc609cb2444201d4d028
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/52440
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-07-15 02:14:53 +00:00