refactor(logging): Extract format_data method from JsonLogger

Extract the data formatting logic into a separate format_data method that can be overridden by prepended modules. This enables the upcoming FieldValidator to intercept and inspect log data without modifying the core logging flow.

The extracted method:

  • Receives severity, timestamp, progname, and message
  • Returns the formatted data hash
  • Is called by call before JSON serialization

No functional changes to logging behavior.

See: gitlab-org/quality/quality-engineering/team-tasks#4094 (closed)

Merge request reports

Loading
Loading