-
Notifications
You must be signed in to change notification settings - Fork 128
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
The feature to automatically split log files based on policy? #134
Comments
You are talking about log rotation? Personally I would let a separate piece of software do that for me like logrotate. But I guess you could write a custom |
Yes it's about log rotation! I'm not a native English speaker, so this is the first time I know the name in English for this mechanism haha, thanks :) It's true that this would be better to create a new class that extends |
@myConsciousness Do you have some results? |
Hi @antonshkurenko , I was very busy and I couldn't touch it yet, but as @dgurudot suggested an interesting repository it's easy to implement. However, I felt the implementation of the repository @dgurudot referred us is a bit difficult to use in many cases. If it's to be implemented in this repository, it should be more generic :) |
Hi amazing developers,
This package is great, but the file output specifications seem a bit weak. What is needed, especially when it comes to file output, is the ability to create a separate file and move the write destination when a certain number of lines or size is reached.
This split policy is then supposed to be passed by the user in the form of a
Configuration
object.It is not possible with the current specification to pass the file object directly to the constructor, but I think it is feasible enough to add a constructor with a name like
fromConfig
.Or does this idea not fit the design philosophy of this package?
Thank you.
The text was updated successfully, but these errors were encountered: