michaelfeil / michaelfeil/infinity

Support Customizable Logging Format in Infinity

Open
#640 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

Feature request

Background
When deploying models with Infinity, I found that the current log output is not very convenient for log collection and post-processing. For example, the logs often lack timestamps, and the default log format may not meet enterprise logging standards. This makes it harder to integrate with centralized logging systems and to perform effective analysis.

Proposal
I would like to propose adding support for customizing the logging format in Infinity, so that users can better control log output to fit their operational requirements.

Specifically, I suggest:

  1. Ability to disable the rich log handler

    • Controlled via an environment variable:
      INFINITY_DISABLE_RICH_HANDLER
  2. Ability to customize the basic log format

    • Controlled via an environment variable:
      INFINITY_LOG_FORMAT
  3. Ability to customize Uvicorn log formats

    • Controlled via the following environment variables:
      • INFINITY_UVICORN_DEFAULT_FORMAT: Format for default logs
      • INFINITY_UVICORN_ACCESS_FORMAT: Format for access logs
      • INFINITY_UVICORN_DATE_FORMAT: Date format for all logs
Motivation

These changes will allow operators to:

  • Include timestamps and structured fields for easier parsing
  • Align log formats with enterprise-wide logging standards
  • Simplify integration with tools like Fluent Bit, Logstash, or OpenTelemetry
Your contribution

If the community agrees with this proposal, I am happy to contribute a PR to implement this feature.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the logging setup for the rich handler and basic format, then find the Uvicorn logging configuration. Done means the requested environment variables control rich-handler use, basic and Uvicorn formats, and date formatting without breaking existing logging behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.