-
-
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
Add linktolatest option for RollingFileWriter #150
Conversation
Thank you very much for your pull request :) You need Java 9 to compile all tinylog artifacts. Java 11 and later don't include Is there any way to implement it without using |
37ad1a8
to
5e62235
Compare
Codecov Report
@@ Coverage Diff @@
## v2.2 #150 +/- ##
============================================
- Coverage 94.17% 94.08% -0.09%
- Complexity 2275 2278 +3
============================================
Files 115 115
Lines 4220 4242 +22
Branches 447 451 +4
============================================
+ Hits 3974 3991 +17
- Misses 136 139 +3
- Partials 110 112 +2
Continue to review full report at Codecov.
|
It wasn't as easy as i expected to find a jdk 9 installer and to remember how to do things in java 1.6 , but it finally builds. Please let me know what you think. |
Today, I read about creating symbolic links in Java without using the NIO API. Unfortunately, there is really no native Java API for it prior Java 7. Creating a process for executing OS commands as you did is the only way. However, the disadvantage is that these commands are OS depending. For example, it won't work on Windows. However, I think your feature is very useful for computer applications, but I don't see any use case for Android apps. Therefore, I prefer to use your previous approach with the |
By the way, I have a question about |
5e62235
to
40d8d85
Compare
I renamed However, I am having trouble getting the build to succeed (it seems to exclude java 7 sdk):
|
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.
Thank you very much for your awesome pull request! I have just reviewed it. I have only a few minor change requests. Could you apply them? Afterwards I'm going to merge your pull request.
tinylog-impl/src/main/java/org/tinylog/writers/RollingFileWriter.java
Outdated
Show resolved
Hide resolved
tinylog-impl/src/main/java/org/tinylog/writers/RollingFileWriter.java
Outdated
Show resolved
Hide resolved
7fe6cd2
to
2911616
Compare
Thanks for your useful comments! I made the suggested changes. |
@pabl0rg Can you reproduce the failed JUnit test on your local machine? |
Actually it seems that test case was not actually needed/wanted. (symlinks should only updated on rollover) |
@pabl0rg I have merged your pull request! Thank you very much for your contribution :) I just noticed that you used an email address (jp@s***.info) for your commits that isn't linked to your GitHub profile. Could you add it (https://github.com/settings/emails)? |
Done! Thank you and sorry I didn't fix the tests. I came down with covid and my thinking has been foggy. |
@pabl0rg Thank you very much! Health has first priority of course. I hope you feel already better. Get well soon! |
This closed pull request has been locked automatically. However, please feel free to file an issue or create a new pull request. |
see #149
I'm not sure how to implement the assertions in the test. The build is not working on my machine (javac 11.0.7)
If you find the idea acceptable, could you please help me with this part? Thank you!