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 <[email protected]> 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 >
