Skip to content
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

SizeAndTimeBasedFNATP was renamed but is still mentionned in the documentation #860

Open
guilgaly opened this issue Sep 10, 2024 · 4 comments
Assignees
Labels
Milestone

Comments

@guilgaly
Copy link

In the latest release (1.5.8), SizeAndTimeBasedFNATP was renamed to SizeAndTimeBasedFileNamingAndTriggeringPolicy (in this commit).

However:

  • The documentation, in the Appenders chapter, mentions that SizeAndTimeBasedFNATP should still work although it's no longer recommended.

    In versions prior to 1.1.7, this document mentioned a component called SizeAndTimeBasedFNATP. However, given that SizeAndTimeBasedRollingPolicy offers a simpler configuration structure, we no longer document SizeAndTimeBasedFNATP. Nevertheless, earlier configuration files using SizeAndTimeBasedFNATP will continue to work just fine. In fact, SizeAndTimeBasedRollingPolicy is implemented with a SizeAndTimeBasedFNATP subcomponent.

  • The constant CoreConstants.SIZE_AND_TIME_BASED_FNATP_IS_DEPRECATED, still mentions the name SizeAndTimeBasedFNATP in a deprecation warning in case of direct usage of SizeAndTimeBasedFileNamingAndTriggeringPolicy.

By the way, the name SizeAndTimeBasedFNATP still also appears in various places in the code, but those aren't user-visible.

I guess that either SizeAndTimeBasedFNATP shouldn't have been renamed (if its direct use is still supposed to work, although deprecated), or the documentation should be updated.

jkorri added a commit to Opetushallitus/sijoittelu that referenced this issue Dec 10, 2024
  Versiossa 1.5.8 luokka SizeAndTimeBasedFNATP on uudelleennimetty, jolloin oph-environment/log-hakemistossa
  oleva konfiguraatiotiedosto ei enää toimi, ks. qos-ch/logback#860
@fenik17
Copy link

fenik17 commented Dec 27, 2024

@ceki
Also, this renaming broke our configurations.
It would be nice to add a subclass with the old name for backward compatibility.

@ceki
Copy link
Member

ceki commented Dec 27, 2024

SizeAndTimeBasedFNATP now extends SizeAndTimeBasedFileNamingAndTriggeringPolicy preserving backward compatibility with existing configuration files. See commit 80db86b

@ceki ceki self-assigned this Dec 27, 2024
@ceki ceki added the DONE label Dec 27, 2024
@ceki ceki added this to the 1.5.16 milestone Dec 27, 2024
@ceki
Copy link
Member

ceki commented Dec 27, 2024

@fenik17 Would you care to check whether the commit 80db86b fixes the issue?

@fenik17
Copy link

fenik17 commented Dec 29, 2024

@ceki I checked - your fix helped, everything works. Thank you for such a quick response! Although, of course, we have already updated our configurations to use SizeAndTimeBasedRollingPolicy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants