-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow tracing-appender sized log and rotation #1940
Comments
If I understand correctly, this issue is proposing a few features:
I would be very happy review to pull requests that add all of these features, and I can provide some guidance for implementing them. Also, note that there was a previous feature request specifically for size-based file rotation, #858. I believe there was also an attempt to implement it at the time, but there were some issues with the implementation. |
Hi! I have the exact same needs.
My company allowed me to get an initial implementation for that done on my working hours, and it would be a pleasure for me to send pull requests. Thank you! |
Hi @CBenoit, thanks for your interest in contributing this change! Are there specific aspects of the implementation that you have questions about? From the API side, I think at some point, as more features are added to the rolling file appender, we'll probably want to add a builder-style interface for configuring the rolling file appender's behavior. For this change, though, I think we'll want to add a new |
Rather than questions about aspects of the current implementation, I would like to know more about how you envisioned this feature (even a rough idea). For instance, if you have a specific API, or specific implementation in mind? Maybe it’s simpler to just go ahead and open a draft PR though. For the API side, I was thinking about adding a whole new API surface using some kind of builder pattern as you suggested.
So if I understand correctly, you suggest to create a completely different |
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
I opened a pull request to address the following point:
This pull request already addressed the following point:
In order to track progress efficiently, I suggest creating a separate issue for the remaining point:
I intend to tackle this last point as well. |
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
This patch adds size-based rotation to tracing-appender. In a constraint environment, we should be able to contain the logging size and period. Related issues: - tokio-rs#1940 - tokio-rs#858
Feature Request
Crates
The tracing-appender
Motivation
In a constraint environment, we should be able to contain the logging size and period. Let's say we want temporary logging in tmpfs, we are not able to manage the size of the log file or the rotation pool size.
Proposal
We should create a new
rotate_sized
mod with all the sized logic.Alternatives
We could improve the rolling. But, it seems to make simple things more complicated.
The text was updated successfully, but these errors were encountered: