-
-
Notifications
You must be signed in to change notification settings - Fork 82
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 to dynamically change log filename using {dynamic name} segment #230
Conversation
Thank you for your pull request, and yes, I'm willing o support this feature. Improvement suggestions:
|
05f8a29
to
18ca477
Compare
Done.
Done.
Very nice!
Me neither. I also dislike the cross dependency between the two classes. Is there a better way? Should one class implement both interfaces? Related (and more elaborated) concepts in other logging libraries are: |
You can fix the build by adding a bug pattern for |
Some thoughts and suggestions:
|
503d2aa
to
a1392c9
Compare
Codecov Report
@@ Coverage Diff @@
## v2.5 #230 +/- ##
============================================
- Coverage 94.59% 94.54% -0.05%
- Complexity 2722 2741 +19
============================================
Files 136 138 +2
Lines 5220 5246 +26
Branches 686 689 +3
============================================
+ Hits 4938 4960 +22
- Misses 154 157 +3
- Partials 128 129 +1
Continue to review full report at Codecov.
|
a1392c9
to
82a1343
Compare
The release build fails because Java 6 does not support |
82a1343
to
4c3acd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks perfect! I found only a view Javadoc issues.
tinylog-impl/src/main/java/org/tinylog/path/DynamicNameSegment.java
Outdated
Show resolved
Hide resolved
tinylog-impl/src/main/java/org/tinylog/path/DynamicNameSegment.java
Outdated
Show resolved
Hide resolved
tinylog-impl/src/main/java/org/tinylog/path/DynamicNameSegment.java
Outdated
Show resolved
Hide resolved
tinylog-impl/src/main/java/org/tinylog/path/DynamicNameSegment.java
Outdated
Show resolved
Hide resolved
tinylog-impl/src/test/java/org/tinylog/policies/DynamicNamePolicyTest.java
Outdated
Show resolved
Hide resolved
4c3acd3
to
b4302b5
Compare
b4302b5
to
b9893ed
Compare
Thank you for your changes. It looks perfect for me :) |
Thank you for your patient and constructive reviews! Sorry for a few glitches in Java 6 compatibility – I'm no longer used to write code targetting Java 6... |
This closed pull request has been locked automatically. However, please feel free to file an issue or create a new pull request. |
Description
Allow to dynamically change log filename. Say you have a task consisting of the steps foo, bar, baz, and you'd like to obtain log files
foo.log
,bar.log
,baz.log
This PR would allow to:
Would you be willing to support this feature? Is this draft implementation a feasible way to accomplish the goal? Is there a more concise way?
Definition of Done
mvn verify
)Documentation
Additions or amendments for the public documentation:
Agreements