[PR #8210] feature: add logger json enabling by env var #12666

Open
opened 2026-04-13 00:06:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8210
Author: @didlawowo
Created: 12/22/2024
Status: 🔄 Open

Base: mainHead: feat/log-json-format


📝 Commits (2)

  • 2d2ef8e add loger json
  • 93f3048 Merge branch 'ollama:main' into feat/log-json-format

📊 Changes

2 files changed (+36 additions, -13 deletions)

View changed files

📝 envconfig/config.go (+4 -0)
📝 server/routes.go (+32 -13)

📄 Description

by adding env var to server, we can enable log format in json.
better for observability tool


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8210 **Author:** [@didlawowo](https://github.com/didlawowo) **Created:** 12/22/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/log-json-format` --- ### 📝 Commits (2) - [`2d2ef8e`](https://github.com/ollama/ollama/commit/2d2ef8e8eae98de1accb690e7b63db89f18bb98d) add loger json - [`93f3048`](https://github.com/ollama/ollama/commit/93f3048104e50ab7b5e4d4ff81fc20e6796bb6da) Merge branch 'ollama:main' into feat/log-json-format ### 📊 Changes **2 files changed** (+36 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `envconfig/config.go` (+4 -0) 📝 `server/routes.go` (+32 -13) </details> ### 📄 Description by adding env var to server, we can enable log format in json. better for observability tool --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:06:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#12666