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> 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
> 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