Skip to content

[Python] Implement logging middleware for multi-server sample #4368

@yesudeep

Description

@yesudeep

Description

Multiple logging middleware improvements needed for the multi-server sample:

  • Log all access requests and fix duplicates
  • Color-coded access requests for each server
  • Show METHOD and path first, then structure
  • Highlight errors in red

Location

  • File: py/samples/multi-server/src/main.py
  • Lines: 56-59
  • Current code:
    # TODO: Logging middleware > log ALL access requests and fix dups
    # TODO: Logging middleware > access requests different color for each server
    # TODO: Logging middleware > show the METHOD and path first and then the structure
    # TODO: Logging middleware > if the response is an error code, highlight in red
    

Acceptance Criteria

  • Log all access requests without duplicates
  • Color-code requests by server
  • Show METHOD and path prominently
  • Highlight errors in red

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions