Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006081 [Resin] minor always 08-01-17 14:33 08-30-17 15:46
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0006081: jam-app-0.log rollover and compression
Description 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).
Additional Information
Attached Files

- Relationships

- Notes
(0006787)
ferg
08-30-17 15:46

Added archive-format to watchdog-log, with %{name} as pattern for the log name.

server/6e83
 

- Issue History
Date Modified Username Field Change
08-01-17 14:33 ferg New Issue
08-30-17 15:46 ferg Note Added: 0006787
08-30-17 15:46 ferg Assigned To  => ferg
08-30-17 15:46 ferg Status new => assigned
08-30-17 15:46 ferg Resolution open => fixed
08-30-17 15:46 ferg Fixed in Version  => 4.0.54
08-30-17 15:46 ferg Status assigned => closed


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker