Re: Custom actions on rollover

2017-05-18 Thread Chandra
Hey Ralph, I want to write a custom action as I see it’s not available. I am just looking for some place to start. that’s why I asked some kind of doc/overview of the framework that would quickly get me started. thanks, Chandra On 19 May 2017, 10:29 AM +0530, Ralph Goers

Re: Custom actions on rollover

2017-05-18 Thread Ralph Goers
I just updated the stack overflow article Remko mentioned to document the improvements that were made in 2.8. That still doesn’t solve your problem, but I don’t see why you couldn’t write a custom action. If we can write an action to delete the files I don’t see why one couldn’t log the names

Re: Custom actions on rollover

2017-05-18 Thread Chandra
Hi Remko, I see it, the more I dig in the “rollover” strategy, the more I   discover of these “subtleties”. is there by any chance a bird’s eye view of the framework? thanks, Chandra — PS: btw, “picocli” looks like a good candidate to be used in “jvmTop (https://github.com/tckb/jvmtop)”  the

Re: Custom actions on rollover

2017-05-18 Thread Remko Popma
Some (very early stage) thinking on that topic is here: https://issues.apache.org/jira/browse/LOG4J2-1198 This may not be easy because there are quite a few subtleties with rollovers (search the Log4j2 JIRA for rolling and rollover). Remko (Shameless plug) Every java main() method deserves

Custom actions on rollover

2017-05-18 Thread Chandra
Hi guys, So my requirement is to log the file names of the log files at the time of rotation. I came across the `Actions` PluginElement in DefaultRolloverStrategy. Can this be used for the purpose. I haven’t worked on it and it seems there aren’t many good resources for this. Anyone worked on