[PR #3599] [MERGED] Set log folder variable to /var/log/x-ui #5473

Closed
opened 2026-10-31 20:47:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3599
Author: @nebulosa2007
Created: 12/5/2025
Status: ✅ Merged
Merged: 1/2/2026
Merged by: @MHSanaei

Base: main ← Head: log_folder


📝 Commits (4)

  • 742d901 Set log folder variable to /var/log/3x-ui
  • 3772a98 Merge branch 'MHSanaei:main' into log_folder
  • 2c48a64 Set log folder as x-ui and create the log folder
  • 12768cc Create the log folder in install and update scripts

📊 Changes

4 files changed (+5 additions, -2 deletions)

View changed files

📝 config/config.go (+1 -1)
📝 install.sh (+1 -0)
📝 update.sh (+1 -0)
📝 x-ui.sh (+2 -1)

📄 Description

What is the pull request?

Move all logs files from /var/log/ to /var/log/3x-ui:
📄 /var/log/3xipl-ap.log -> /var/log/3x-ui/3xipl-ap.log
📄 /var/log/3xipl-ap.prev.log -> /var/log/3x-ui/3xipl-ap.prev.log
📄 /var/log/3xipl-banned.log -> /var/log/3x-ui/3xipl-banned.log
📄 /var/log/3xipl-banned.prev.log -> /var/log/3x-ui/3xipl-banned.prev.log
📄 /var/log/3xipl.log -> /var/log/3x-ui/3xipl.log
📄 /var/log/3xui.log -> /var/log/3x-ui/3xui.log

like others programs do, to prevent mess in var/log folder and for log rotate and cleanup issues.

I did it already about couple month ago on my Arch Linux system and it works without any issue.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 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/MHSanaei/3x-ui/pull/3599 **Author:** [@nebulosa2007](https://github.com/nebulosa2007) **Created:** 12/5/2025 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `log_folder` --- ### 📝 Commits (4) - [`742d901`](https://github.com/MHSanaei/3x-ui/commit/742d901a61eeedfeff8a81e5ffb5aad1df19686a) Set log folder variable to /var/log/3x-ui - [`3772a98`](https://github.com/MHSanaei/3x-ui/commit/3772a9825c2714cd233b2fe1200c330e720001f4) Merge branch 'MHSanaei:main' into log_folder - [`2c48a64`](https://github.com/MHSanaei/3x-ui/commit/2c48a64b07dbf89e0dedc5ac07afd33f313e6876) Set log folder as x-ui and create the log folder - [`12768cc`](https://github.com/MHSanaei/3x-ui/commit/12768ccb3fb746f5f3bfb6b47ce0f51feb0559d2) Create the log folder in install and update scripts ### 📊 Changes **4 files changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `config/config.go` (+1 -1) 📝 `install.sh` (+1 -0) 📝 `update.sh` (+1 -0) 📝 `x-ui.sh` (+2 -1) </details> ### 📄 Description ## What is the pull request? Move all logs files from /var/log/ to /var/log/3x-ui: 📄 /var/log/3xipl-ap.log -> /var/log/3x-ui/3xipl-ap.log 📄 /var/log/3xipl-ap.prev.log -> /var/log/3x-ui/3xipl-ap.prev.log 📄 /var/log/3xipl-banned.log -> /var/log/3x-ui/3xipl-banned.log 📄 /var/log/3xipl-banned.prev.log -> /var/log/3x-ui/3xipl-banned.prev.log 📄 /var/log/3xipl.log -> /var/log/3x-ui/3xipl.log 📄 /var/log/3xui.log -> /var/log/3x-ui/3xui.log like others programs do, to prevent mess in var/log folder and for log rotate and cleanup issues. I did it already about couple month ago on my Arch Linux system and it works without any issue. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [ ] New feature - [X] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:13 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5473
No description provided.