Mantis - Resin
Viewing Issue Advanced Details
6081 minor always 08-01-17 14:33 08-30-17 15:46
ferg  
ferg  
normal  
closed  
fixed  
none    
none 4.0.54  
0006081: jam-app-0.log rollover and compression
Is there a way to specify:

    rollover-count
    rollover-period
    rollover-size
    archive-format

for jvm-app-0.log file?

It seems it rotates automatically when it hits 64MB, but when it gets rotated it does not get compressed. That eventually consumes the entire free disk space allocated for /var/log folder. If nothing else then at least I'd like to compress the rotated jvm-app-0.log.XXXXX file.

As a workaround, I have the following two stanzas, which sends stdout and stderr to their own log files where I have a full control over the rollover settings:

<stdout-log
     path="/var/log/resin/stdout-${server.id}.log"
     archive-format="stdout-${server.id}.log.%Y%m%d.gz"
     rollover-period="1W"
     rollover-count="3" />

<stderr-log
     path="/var/log/resin/stderr-${server.id}.log"
     archive-format="stderr-${server.id}.log.%Y%m%d.gz"
     rollover-period="1W"
     rollover-count="3"
     timestamp="[%y-%m-%d %H:%M:%S.%s] " />

But I'd rather have just one log file (jvm-app-0.log).

Notes
(0006787)
ferg   
08-30-17 15:46   
Added archive-format to watchdog-log, with %{name} as pattern for the log name.

server/6e83