[logback-user] Retrieving the log filenames

Clemens Siebler clemens.siebler at googlemail.com
Mon Mar 21 15:42:21 CET 2011


Let's assume the user only changes the logging levels/filter during runtime,
nothing else.

On Mon, Mar 21, 2011 at 3:32 PM, David Roussel
<nabble at diroussel.xsmail.com>wrote:

> Would a change notifier be told of the new filename?  I'm not sure, but
> it's worth a check.
>
> On 21 Mar 2011, at 13:56, Clemens Siebler <clemens.siebler at googlemail.com>
> wrote:
>
> > Hi all,
> >
> > I'm currently using Logback (SLF4J) with a TimeBasedRollingPolicy defined
> in logback.xml. Everything works fine, however, I'd like to retrieve the
> filenames of the current logging session since the application started. The
> user can obviously change the log filenames and policies in logback.xml, so
> I don't want them hardcoded in the source. My goal is to retrieve these
> filenames straight within Java in order to do some more processing with
> them. Is there any possibility in logback/slf4j to retrieve those names?
> >
> > I currently aquire the logger via:
> > Logger logger = LoggerFactory.getLogger(Test.class);
> >
> > but obviously, this Logger object in particular doesn't provide such
> functionality. Any ideas?
> >
> > Thanks in advance,
> > Clemens
> > _______________________________________________
> > Logback-user mailing list
> > Logback-user at qos.ch
> > http://qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110321/448ae4b8/attachment.html>


More information about the Logback-user mailing list