logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <rem...@yahoo.com>
Subject Re: [Log4j2] How to change the appender file name at run time
Date Mon, 22 Jul 2013 04:26:10 GMT
You can use the RoutingAppender. 
Take a look at the last comment (source & config example) in this Jira ticket:
https://issues.apache.org/jira/browse/LOG4J2-314


Sent from my iPhone

On 2013/07/22, at 12:38, levtbinh <bryan.le@mail.rakuten.com> wrote:

> In my application, I would want to save log of different sources to different
> files without knowing the file names before hand.
> 
> How should I do that with Log4j2?
> 
> I have tried the following config
> 

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message