Heh.  I should have checked my email again before writing the exact same thing as Qvx. :)

On 5/12/06, Qvx <[EMAIL PROTECTED] > wrote:
I tried to use RotatingFileHandler but it didn't work. I tried two syntaxes (inside log.cfg):

class='RotatingFileHandler'
class='handlers.RotatingFileHandler'

In the end I had to change turbogears/config.py and add:

import logging.handlers

in order to be able to use RotatingFileHandler like this:

[[[rotating_out]]]
class='handlers.RotatingFileHandler '
level='DEBUG'
args='("ccleads.log", "a", 10485760, 10, "windows-1250")'
formatter='full_content'

This was in 0.9a5


On 5/12/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote:

On 5/12/06, Sean De La Torre <[EMAIL PROTECTED]> wrote:
> [[[access_out]]]
> # set the filename as the first argument below
> args="('server.log ',)"
> class='FileHandler'    #<--- Changed from 'StreamHandler'
> level='INFO'
> formatter='message_only'

Fixed in [1481]. Thanks!





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

Reply via email to