Oh yeah, I realize I was looking at the commands.  I just grepped for loggo
usage.

We could be giving it a file, though. Why redirect through upstart?
On Jul 17, 2014 5:46 PM, "Tim Penhey" <tim.pen...@canonical.com> wrote:

> We don't give loggo a file at all, it is written to stdout (or stderr).
>
> This is then handled by our upstart scripts and redirected into a file.
>
> I *think* there are upstart hooks for log rotation as well, but I may
> well be wrong on that.
>
> Tim
>
> On 18/07/14 08:27, Nate Finch wrote:
> > So, as below, there is a request (again) to do log rotation.  For
> > all-machines.log, this is pretty easy, it's just an rsyslog setting.
> >  For each machine's machine-<tag>.log, I suggest we use my log rotation
> > package - https://godoc.org/gopkg.in/natefinch/lumberjack.v2.  The nice
> > thing about it is that it's easy to drop it into the current code.
> >  Instead of giving loggo a file to write to, you give it a
> > lumberjack.Logger.  Plus, it's cross-platform, so when we start
> > deploying to Windows, we won't have to rework the log rotation (like we
> > would if we used something like logrotate).
> >
> > Thoughts welcome.
> >
> > -Nate
> >
> > On Thu, Jul 17, 2014 at 3:27 PM, Alexis Bruemmer
> > <alexis.bruem...@canonical.com <mailto:alexis.bruem...@canonical.com>>
> > wrote:
> >
> >     <ivoks> there is one bug, though
> >     <ivoks> you need to investigate
> >     <alexisb> which is?
> >     <alexisb> or are you asking me?
> >     <ivoks> https://bugs.launchpad.net/ubuntu/+source/juju/+bug/1078213
> >     <ivoks> i was looking for it
> >     <ivoks> i had two customers that filled their disks with juju logs
> >     <alexisb> alrgith I will get eyes on it asap
> >     <alexisb> thanks!
> >     <ivoks> if you need it, i can give you a file that juju needs to
> >     place in specific directory, and all would be fine
> >     <ivoks> actually, let me write a patch for it :)
> >
> >     Nate was looking at it today, but want to make sure you are aware it
> >     came through.
> >
> >     --
> >     Alexis Bruemmer
> >     Juju Core Manager, Canonical Ltd.
> >     (503) 686-5018 <tel:%28503%29%20686-5018>
> >     alexis.bruem...@canonical.com <mailto:alexis.bruem...@canonical.com>
> >
> >
> >
> >
>
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to