Personally, I'd go with something like the following in your .ini file. The
result will be a rotating log file where you don't have to deal with any of
the leg work yourself.

----------------------------------<cut
here>----------------------------------
[loggers]
keys = root, auth

[handlers]
keys = rotfile

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = rotfile

[logger_auth]
level = WARN
handlers = rotfile
qualname = auth

[handler_rotfile]
class = handlers.RotatingFileHandler
args = ('/path/to/output/log/file', 'w', 10485760, 5)
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %Y-%m-%d %H:%M:%S

----------------------------------<cut
here>----------------------------------

On Wed, Jun 9, 2010 at 12:55 PM, Jd <[email protected]> wrote:

> Is there a way to setup log rotation for paster.log.
> We are on TG2 2.0.3
>
> Tried..
> http://www.mail-archive.com/[email protected]/msg00487.html
> But does not seem to work.
>
> Can we do something may be in the login config to log "console" to the
> file ? Is this going to be different than what we get in paster.log ?
>
> Thanks
> /Jd
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<turbogears%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
>


-- 
Michael J. Pedersen
My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
         Yahoo/pedermj2002, MSN/[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to