ENG-10963 feat(log): add stdlib logging pipeline in reflex_base.utils.log (1/5)

Merged
FA
3mo ago
+1544-63

Adds reflex_base.utils.log: a standard python logging pipeline with a rich-rendering console handler (legacy colors preserved), a JSON-lines handler behind REFLEX_LOG_JSON, record deduplication, and file logging.

  • LogLevel gains a correct total ordering (the str mixin compared alphabetically, so --loglevel critical printed the system-info banner) and to_logging_level().
  • console.set_log_level delegates into the pipeline; print/rule/status/progress respect JSON mode; print_table added.
  • import reflex bootstraps the reflex-owned loggers (sinks attach lazily on the first record).
  • No call sites are migrated yet — that happens in PRs 2-4.

Stack (ENG-10963)

this → #6864 → #6865 → #6866 → #6867.
Merge in order; each PR is based on the previous branch.