I've already refactored the logging, I'm redirecting stdout and stderr to a
master.log or slave.log

https://github.com/deric/mesos-deb-packaging/blob/master/mesos-init-wrapper#L109

the logrotate itself it quite simple

/var/log/mesos/*.log {
        daily

        missingok
        rotate 30
        compress

        delaycompress
        notifempty
}



On 30 May 2014 11:14, Damien Hardy <dha...@viadeoteam.com> wrote:

> Hello,
>
> Yes I do.
> I thought this was re right thing to do for logs.
> But never ending file is not safe usable. This option --log_dir need
> some rework I suppose.
> I will go with stdout/stderr pipeline instead (using logrotate
> copytruncate to handle open file descriptors)
>
> Thank you
>
> Le 15/05/2014 22:02, Tomas Barton a écrit :
> > Hi Damien,
> >
> > do you use the `--log_dir` switch? If so, mesos is creating quite many
> > files in a strange format:
> >
> > mesos-slave.{hostname}.invalid-user.log.INFO.20140409-155625.7545
> >
> > when you forward stdout of the service to a single file and afterwards
> > apply simple logroate
> > rules, you might get nicer logs.
> >
> > Tomas
>
> --
> Damien HARDY
>
>

Reply via email to