File rotation limitations
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 !
- Ngôn ngữ chính
- Go
- Star
- 881
- Fork
- 64
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của phuslu/log
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Log corruption and content interleaving when using Logger and Async TSVLogger simultaneouslyĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
-
Fails to build in gccgoĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
bug: ConsoleWriterĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
Issue tương tự
-
Feature Request: clone buttonĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
cicd needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày