On Jan 25, 11:57 pm, "Benedict Verheyen" <[EMAIL PROTECTED]> wrote: > Hi, > > when i used the builtin web server, i did my debugging via print messages. > Now that the site has gone into production, i use Apache and so the > print messages > don't show up anymore. > Is there an easy way to reroute these messages to a file or console? > > In other apps, i use the logging module with a RotatingFileHandler, so > that i don't have to worry about log files getting to big. > Is there a way to use that package too? When running stuff under mod_python and using 'print', you should be able to force the output into the Apache error log file by using: import sys print 'message' sys.stdout.flush() Ie., you must explicitly flush the output. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---