File rotation limitations
まだ誰も着手していません。
評価
調査の方向性
Start by locating the file rotation and Cleaner implementation, then trace how Rotate selects files and handles platform-specific ownership. The issue proposes configurable filename filtering and file enumeration, plus platform-specific rotation behavior, but does not identify source files or tests. Done means supporting the requested compression formats and Windows behavior; the scope needs maintainer clarification.
索引モデルが issue の本文から書いたものです。
説明
Hello phuslu,
You have added a very nice set of features in the library; there are a few limitations related to file rotation that give me currently some trouble:
-
the rotation logic assumes that only gzip is used.
However, since you exposed an important part of the logic in the Cleaner attribute, you should expose also the filtering of the files so that different compression formats can be used.
I could, for example, compress as ZSTD, or 7Z, or LZ4 and I would need the corresponding extensions to be evaluated by the Rotate method. -
the rotation logic assumes that the code will be executed on Linux - and it has some specific logic (for example retrieving the user and group IDs).
But the same is needed in Windows context, and there should be a Windows specific logic as well.
Perhaps the best would be to declare a default rotation handler per platform and also expose some variables in the called method:
- the filter to be used for the files names
- the enumeration of the files in the log folder
I hope my explanations did not create confusion.
Do you think it is complicated to implement ?
Thank you in advance for your feedback !
- 主要言語
- Go
- スター
- 881
- フォーク
- 64
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phuslu/log のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
-
bug: ConsoleWriterオープン
難易度 3/5 1〜2日 初心者へのやさしさ 32/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
cicd needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信