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

> Which version are you running?
> I think I fixed this already.
> Le 19 juil. 2016 13:01, "Rene Cimerlajt" <[email protected]> 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 <[email protected]>:
> >
> > > 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 <[email protected]>:
> > >
> > > > 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 <[email protected]
> >:
> > > >
> > > > > 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 <
> [email protected]
> > >:
> > > > >
> > > > > > 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 <
> > [email protected]
> > > >:
> > > > > >
> > > > > > > *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 <
> > > [email protected]
> > > > >:
> > > > > > >
> > > > > > > > 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