FileTarget: Fix archive based on time does not always archive. - #1100
#1100FileTarget: Fix archive based on time does not always archive.#1100
Conversation
|
Thanks! Is this (partly) the same as #1090? |
|
Well we can now unit test it, isn't it? Thanks for checking :) |
I think creationTime is better, but please check. Can you also check the mono error? Thanks! |
It seems you are right, and I supplemented the tests to enforce this. And with that, it seems that we never use the I'm also thinking about refactoring the |
Thanks!
Remove it. Less is more (and dead code which isn't clearly dead, is a source of confusion).
That's a good proposal. But please don't name it FileInfo. I was already confused before that it wasn't returning a FileInfo instance (the well known BCL FileInfo). Maybe something like FileMetaInfo? (and rename the method) |
Current coverage is
|
There was a problem hiding this comment.
Looks good! But why it's still a out parameter? We can refactor the whole tree because it's internal?
|
Added some small notes. PS. If you like, please rename some vars to meaningful names. "fi", "ts", those should be removed in the code (in the future) |
# Conflicts: # src/NLog/Targets/FileTarget.cs
|
Thanks! Great job! PS I only get a notification if you post a comment. |
FileTarget: Fix archive based on time does not always archive.
|
Any idea if this also fixes #307? |
|
@bhaeussermann Have you considered making |
|
Hey @ilya-g! Good to see your here :) You have a valid point although it's a short living object. @epignosisx what do you think of this? Can we profile the memory pressure on this? |
Fixes #1022,fix #859, fix #550