Re: How redirect lightweight webserver messages?
On Jul 17, 3:29 pm, Andrea Della Pietra wrote: > Django source. Server log message are send to stderr (stdout is set as a > file handler) but tee logs only stdout. Bash programming: stderr and stdout 2 file http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html#ss3.6 $ python manage.py runserver &> example.log stderr 2 stdout $ python manage.py runserver 2>&1 | tee log.txt --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: How redirect lightweight webserver messages?
Yes and also on windows. I use tee in order to have print on stdout and also on a log file. The problem is that I don't see django web server messages on log file (I see only my logging messages). Maybe I've found the problem checking Django source. Server log message are send to stderr (stdout is set as a file handler) but tee logs only stdout. Tnx anyway, Andrew 2009/7/17 Luke Seelenbinder > > That would depend on the OS you use. > > If you use linux: "python manage.py runserver >> example.log" > That will save the output in a file, instead of showing it on screen, > allowing you to have another webserver serve it. > > Luke > > On Jul 17, 6:38 am, Andrew wrote: > > Hi, > > I run Django light web server with command line "python manage.py > > runserver". > > I must redirect to another stream web server output messages, the ones > > like "[17/Jul/2009 12:35:58] "GET /home/foo/ HTTP/1.1" 200 1061". > > Any help? > > > > Tnx, > > Andrew > > > --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: How redirect lightweight webserver messages?
That would depend on the OS you use. If you use linux: "python manage.py runserver >> example.log" That will save the output in a file, instead of showing it on screen, allowing you to have another webserver serve it. Luke On Jul 17, 6:38 am, Andrew wrote: > Hi, > I run Django light web server with command line "python manage.py > runserver". > I must redirect to another stream web server output messages, the ones > like "[17/Jul/2009 12:35:58] "GET /home/foo/ HTTP/1.1" 200 1061". > Any help? > > Tnx, > Andrew --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
How redirect lightweight webserver messages?
Hi, I run Django light web server with command line "python manage.py runserver". I must redirect to another stream web server output messages, the ones like "[17/Jul/2009 12:35:58] "GET /home/foo/ HTTP/1.1" 200 1061". Any help? Tnx, Andrew --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---