I've made my app know the logger file name so that I can put a link to it in an email.
Buy the way I did it was to make the app choose the filename and set a system property. Then in logback.xml refer to the system property. If that approach does not work, because you are using a dynamic log file name, then I suggest you try subclassing the rolling appender and getting the new filename each time one is generated, and then putting that value into a static singleton that is visible to your app. David On 31 Jul 2013, at 11:12, Ulrich <[email protected]> wrote: > > Within my application I would like to know the filename used by it's logger. > I've asked this question before but didn't get an answer. So I will give it > another try. > I've browsed through the Javadoc of the classes and interfaces where I > thought by their name they should be able to provide this piece of > information (LoggerContext and Appender to name two of them), but wasn't > lucky. > > Can anyone help here? > Ulrich > > > > _______________________________________________ > Logback-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/logback-user _______________________________________________ Logback-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-user
