#115 Ability to get out the current logfile name

v3.3.7
closed
API (9)
5
2009-10-05
2009-09-29
No

This has been requested some while ago in ID: 973781 already.
I am able to read out the wrapper.logfile property through WrapperManager.getProperties().
However, when some rollmode is enabled, the current Logfile name is not obvious. I can't see any way of getting out the current logfile name with the existing API other than by guessing the name.

Something like WrapperManager.getLogfile():File would be useful.

Discussion

  • Leif Mortenson

    Leif Mortenson - 2009-10-05

    Markus,
    This has been implemented for the 3.3.7 release.

    There are two new ways to get the current log file name.

    1) Call the new WrapperManger.getWrapperLogFile( method ).

    2) Register a WrapperEventListener to receive WrapperLogFileChangedEvent events whenever the log file is rolled.

    Applications that need to always know the log file name would call #1 on startup and then register for updates with #2.

    Cheers,
    Leif

     
  • Leif Mortenson

    Leif Mortenson - 2009-10-05
    • assigned_to: nobody --> mortenson
     
  • Leif Mortenson

    Leif Mortenson - 2009-10-05
    • milestone: --> v3.3.7
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks