Re: Log Rotation

2014-07-17 Thread Tim Penhey
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-.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
> mailto:alexis.bruem...@canonical.com>>
> wrote:
> 
>  there is one bug, though
>  you need to investigate
>  which is?
>  or are you asking me?
>  https://bugs.launchpad.net/ubuntu/+source/juju/+bug/1078213
>  i was looking for it
>  i had two customers that filled their disks with juju logs
>  alrgith I will get eyes on it asap
>  thanks!
>  if you need it, i can give you a file that juju needs to
> place in specific directory, and all would be fine
>  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


Re: Log Rotation

2014-07-17 Thread Nate Finch
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"  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-.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
> > mailto:alexis.bruem...@canonical.com>>
> > wrote:
> >
> >  there is one bug, though
> >  you need to investigate
> >  which is?
> >  or are you asking me?
> >  https://bugs.launchpad.net/ubuntu/+source/juju/+bug/1078213
> >  i was looking for it
> >  i had two customers that filled their disks with juju logs
> >  alrgith I will get eyes on it asap
> >  thanks!
> >  if you need it, i can give you a file that juju needs to
> > place in specific directory, and all would be fine
> >  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