Skip to content

add json_logging support to env server#930

Merged
JannikSt merged 3 commits intomainfrom
improvement/env-server-json-logging
Feb 18, 2026
Merged

add json_logging support to env server#930
JannikSt merged 3 commits intomainfrom
improvement/env-server-json-logging

Conversation

@JannikSt
Copy link
Member

@JannikSt JannikSt commented Feb 18, 2026

  • add JsonFormatter and json_logging param to setup_logging()
  • thread json_logging through EnvServer.__init__
  • when json_logging=True, configure root logger with JSON formatter so environment code using logging.getLogger(__name__) also emits JSON

Note

Medium Risk
Touches global logging configuration (including the root logger), which can change log output/handlers and affect integrations that rely on existing formatting.

Overview
Adds optional structured JSON logging via a new JsonFormatter and a json_logging flag on setup_logging().

When enabled, setup_logging() also configures the root logger with the JSON formatter so third-party/environment code using standard logging.getLogger(__name__) emits JSON as well. EnvServer.__init__ now accepts and forwards json_logging to logging setup.

Written by Cursor Bugbot for commit dfa95c8. This will update automatically on new commits. Configure here.

- add JsonFormatter and json_logging param to setup_logging()
- thread json_logging through EnvServer.__init__
- when json_logging=True, also configure root logger with JSON formatter
  so environment code using logging.getLogger(__name__) emits JSON
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4823015e6a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@JannikSt JannikSt merged commit 013d4da into main Feb 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments