correct.

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com

On Tue, Jul 19, 2016 at 1:44 PM, Romain Manni-Bucau <rmannibu...@gmail.com>
wrote:

> Ok so both branches are fine (just checked 1.7 and saw your commit, 7.x
> never got this issue since it was using java 7 API)
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
>
> 2016-07-19 22:42 GMT+02:00 Jean-Louis Monteiro <jlmonte...@tomitribe.com>:
>
> > I do recall doing it on 1.7.x branch but not sure I backported it to 7.x
> >
> >
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
> > On Tue, Jul 19, 2016 at 1:25 PM, Romain Manni-Bucau <
> rmannibu...@gmail.com
> > >
> > wrote:
> >
> > > dont recall if we backported it to 1.7 branch but putting commons-io in
> > > CLASSPATH works (you can need to modify catalina.sh script or set some
> > env
> > > variable IIRC)
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > <http://www.tomitribe.com> | JavaEE Factory
> > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > >
> > > 2016-07-19 22:05 GMT+02:00 Jean-Louis Monteiro <
> jlmonte...@tomitribe.com
> > >:
> > >
> > > > Which version are you running?
> > > > I think I fixed this already.
> > > > Le 19 juil. 2016 13:01, "Rene Cimerlajt" <rene.cimerl...@gmail.com>
> a
> > > > écrit :
> > > >
> > > > > Hello Romain.
> > > > >
> > > > > We are trying to get this to work. As it would be usefull for us.
> But
> > > we
> > > > > are confused.
> > > > >
> > > > > Tomee 1.7 already has common-io 2.4
> > > > > Tomee 7 not.
> > > > >
> > > > > Tomee 7, the rotation seems to work, 1.7 not. We tried to remove
> > > > commons-io
> > > > > 2.4, but no help.
> > > > >
> > > > > BR
> > > > > Rene
> > > > >
> > > > > 2016-06-09 23:04 GMT+02:00 Romain Manni-Bucau <
> rmannibu...@gmail.com
> > >:
> > > > >
> > > > > > It is but one of the commit of the backport to 1.7 wasn't correct
> > and
> > > > it
> > > > > > requires to move commons-io in the JVM classpath to work. 7.x
> never
> > > got
> > > > > > this issue.
> > > > > >
> > > > > >
> > > > > > Romain Manni-Bucau
> > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
> > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > https://github.com/rmannibucau> |
> > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > > > > <http://www.tomitribe.com> | JavaEE Factory
> > > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > > > > >
> > > > > > 2016-06-09 22:29 GMT+02:00 Rene Cimerlajt <cimer...@gmail.com>:
> > > > > >
> > > > > > > According to JIRA, this should be also in 1.7.3.
> > > > > > > We have to use 7.0 ?
> > > > > > >
> > > > > > > BR
> > > > > > > Rene
> > > > > > >
> > > > > > > 2016-06-09 15:43 GMT+02:00 Romain Manni-Bucau <
> > > rmannibu...@gmail.com
> > > > >:
> > > > > > >
> > > > > > > > Yes it does, you can check
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apache/tomee/blob/master/tomee/tomee-juli/src/main/java/org/apache/tomee/jul/handler/rotating/LocalFileHandler.java#L455
> > > > > > > > to see what happens
> > > > > > > >
> > > > > > > > PS: can you confirm you use tomee 7 and not 1.7?
> > > > > > > >
> > > > > > > >
> > > > > > > > Romain Manni-Bucau
> > > > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > > > <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
> > > > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > > > https://github.com/rmannibucau> |
> > > > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> |
> > Tomitriber
> > > > > > > > <http://www.tomitribe.com> | JavaEE Factory
> > > > > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > > > > > > >
> > > > > > > > 2016-06-09 15:15 GMT+02:00 Rene Cimerlajt <
> > > > rene.cimerl...@gmail.com
> > > > > >:
> > > > > > > >
> > > > > > > > > I have already seen the test, there I found the properties.
> > > > > > > > >
> > > > > > > > > With the current settings:
> > > > > > > > >
> > > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.
> > > > > > > > > filenamePattern
> > > > > > > > > = ${catalina.base}/logs/catalina.%s.%d.log
> > > > > > > > >
> > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.
> > > > > > > > > archiveDirectory
> > > > > > > > > = ${catalina.base}/logs/archives
> > > > > > > > > 1catalina.org.apache.tomee.jul.handler.rotating.
> > > > > > > > > LocalFileHandler.archiveFormat
> > > > > > > > > = gzip
> > > > > > > > >
> > > > > >
> > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.limit
> > > > > > > =
> > > > > > > > 10
> > > > > > > > > kilobytes
> > > > > > > > >
> > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.
> > > > > > > > > archiveOlderThan
> > > > > > > > > = 1s #for tesintg
> > > > > > > > >
> > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.
> > > > > > > > > purgeOlderThan
> > > > > > > > > = 2s #for tesintg
> > > > > > > > >
> > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.
> > > > > > > > > dateCheckInterval
> > > > > > > > > = 1 second
> > > > > > > > >
> > > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.
> > > > > > > > > compressionLevel
> > > > > > > > > = 1
> > > > > > > > >
> > > > > > > > > Would'n some archiving happen after a few seconds of Tomee
> > boot
> > > > > up..
> > > > > > I
> > > > > > > am
> > > > > > > > > seeing log rotation every 10k, bo no archiving.
> > > > > > > > >
> > > > > > > > > BR
> > > > > > > > > Rene
> > > > > > > > >
> > > > > > > > > 2016-06-09 14:11 GMT+02:00 Romain Manni-Bucau <
> > > > > rmannibu...@gmail.com
> > > > > > >:
> > > > > > > > >
> > > > > > > > > > *for testing* you can add dateCheckInterval=1 second
> > > > > > > > > >
> > > > > > > > > > check
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apache/tomee/blob/master/tomee/tomee-juli/src/test/java/org/apache/tomee/jul/handler/rotating/LocalFileHandlerTest.java#L63
> > > > > > > > > > for a raw config (prefix is removed in this test)
> > > > > > > > > >
> > > > > > > > > > default is 5s which means nothing will happen until you
> hit
> > > > these
> > > > > > log
> > > > > > > > 5s
> > > > > > > > > > after first logging statement.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Romain Manni-Bucau
> > > > > > > > > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > > > > > > > > <https://blog-rmannibucau.rhcloud.com> | Old Wordpress
> > Blog
> > > > > > > > > > <http://rmannibucau.wordpress.com> | Github <
> > > > > > > > > > https://github.com/rmannibucau> |
> > > > > > > > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> |
> > > > Tomitriber
> > > > > > > > > > <http://www.tomitribe.com> | JavaEE Factory
> > > > > > > > > > <https://javaeefactory-rmannibucau.rhcloud.com>
> > > > > > > > > >
> > > > > > > > > > 2016-06-09 14:06 GMT+02:00 Rene Cimerlajt <
> > > > > > rene.cimerl...@gmail.com
> > > > > > > >:
> > > > > > > > > >
> > > > > > > > > > > HI All.
> > > > > > > > > > >
> > > > > > > > > > > I found LocalFileHandler and I am trying to make it
> > > working.
> > > > > > > Rotation
> > > > > > > > > > works
> > > > > > > > > > > but do not know how to make the archive function also
> > work.
> > > > > > > > > > >
> > > > > > > > > > > Can anyone tell me what I am doing wrong.  The low
> > > parameters
> > > > > are
> > > > > > > for
> > > > > > > > > > > testing.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.filenamePattern
> > > > > > > > > > > = ${catalina.base}/logs/catalina.%s.%d.log
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.archiveDirectory
> > > > > > > > > > > = ${catalina.base}/logs/archives
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.archiveFormat
> > > > > > > > > > > = gzip
> > > > > > > > > > >
> > > > > > > >
> > > > >
> > 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.limit
> > > > > > > > > =
> > > > > > > > > > 10
> > > > > > > > > > > kilobytes
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.archiveOlderThan
> > > > > > > > > > > = 1s #for tesintg
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.purgeOlderThan
> > > > > > > > > > > = 2s #for tesintg
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.dateCheckInterval
> > > > > > > > > > > = 1 second
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> 1catalina.org.apache.tomee.jul.handler.rotating.LocalFileHandler.compressionLevel
> > > > > > > > > > > = 1
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > I am using 1.7.3.
> > > > > > > > > > >
> > > > > > > > > > > BR
> > > > > > > > > > > Rene
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to