[PR #174] [MERGED] Make Xorm log configurable #15205

Closed
opened 2025-11-02 11:41:16 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/174
Author: @lunny
Created: 11/15/2016
Status: Merged
Merged: 2/20/2017
Merged by: @lunny

Base: masterHead: lunny/xorm_log_config


📝 Commits (4)

  • ec81408 make xorm log configable
  • fd6b339 bug fixed for other sub commands except web
  • a7c6d96 rebase and fix xorm log
  • 2daebbc bug fix for TrimSpace

📊 Changes

5 files changed (+231 additions, -17 deletions)

View changed files

📝 cmd/admin.go (+2 -0)
📝 cmd/serve.go (+1 -1)
📝 models/models.go (+5 -12)
modules/log/xorm.go (+136 -0)
📝 modules/setting/setting.go (+87 -4)

📄 Description

Before xorm's log will be stored xorm.log, now it will use the same configuration as gogs.log, except the file name from gogs.log to xorm.log. So that, user could set it to be rotated to avoid disk usage.


🔄 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/go-gitea/gitea/pull/174 **Author:** [@lunny](https://github.com/lunny) **Created:** 11/15/2016 **Status:** ✅ Merged **Merged:** 2/20/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/xorm_log_config` --- ### 📝 Commits (4) - [`ec81408`](https://github.com/go-gitea/gitea/commit/ec814085d468762c52d0e2438fdaddfdfae1ee58) make xorm log configable - [`fd6b339`](https://github.com/go-gitea/gitea/commit/fd6b339b1cb993a293834c7c2e169e474d351649) bug fixed for other sub commands except web - [`a7c6d96`](https://github.com/go-gitea/gitea/commit/a7c6d961c17c8a0e4a7834215b0eb16f5f8725ca) rebase and fix xorm log - [`2daebbc`](https://github.com/go-gitea/gitea/commit/2daebbcf130063d3b924ad8175a878e0c11709c9) bug fix for TrimSpace ### 📊 Changes **5 files changed** (+231 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `cmd/admin.go` (+2 -0) 📝 `cmd/serve.go` (+1 -1) 📝 `models/models.go` (+5 -12) ➕ `modules/log/xorm.go` (+136 -0) 📝 `modules/setting/setting.go` (+87 -4) </details> ### 📄 Description Before xorm's log will be stored `xorm.log`, now it will use the same configuration as `gogs.log`, except the file name from `gogs.log` to `xorm.log`. So that, user could set it to be rotated to avoid disk usage. --- <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 2025-11-02 11:41:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15205