[PR #594] Support simultaneous file and stdout logging via LOG_FILE #602

Open
opened 2026-02-16 01:16:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/594
Author: @41tair
Created: 2/1/2026
Status: 🔄 Open

Base: mainHead: feat/log-file


📝 Commits (2)

  • bb92fe7 adding LOG_FILE to .env prevents logs from being output to both the file and stdout
  • 92f6ba0 update the logfile permission to 600

📊 Changes

4 files changed (+32 additions, -3 deletions)

View changed files

📝 .env.example (+1 -0)
📝 cmd/server/main.go (+11 -1)
📝 internal/types/app/config.go (+1 -0)
📝 pkg/utils/log/log.go (+19 -2)

📄 Description

Description

Adding the new LOG_FILE env variable, similar to Dify, allows logs to be output to both the file and stdout

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 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/langgenius/dify-plugin-daemon/pull/594 **Author:** [@41tair](https://github.com/41tair) **Created:** 2/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/log-file` --- ### 📝 Commits (2) - [`bb92fe7`](https://github.com/langgenius/dify-plugin-daemon/commit/bb92fe7613a18075e29b9dad7cb9a4a13c1adb11) adding LOG_FILE to .env prevents logs from being output to both the file and stdout - [`92f6ba0`](https://github.com/langgenius/dify-plugin-daemon/commit/92f6ba091870fa319e3cba1b847fde45a1ca21bf) update the logfile permission to 600 ### 📊 Changes **4 files changed** (+32 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+1 -0) 📝 `cmd/server/main.go` (+11 -1) 📝 `internal/types/app/config.go` (+1 -0) 📝 `pkg/utils/log/log.go` (+19 -2) </details> ### 📄 Description ## Description Adding the new LOG_FILE env variable, similar to Dify, allows logs to be output to both the file and stdout ## Type of Change - [ ] Bug fix - [ ] New feature - [X] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [X] I have tested the changes locally and confirmed they work as expected - [X] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#602