Re: How redirect lightweight webserver messages?

2009-07-19 Thread fabrix
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

Re: How redirect lightweight webserver messages?

2009-07-17 Thread Andrea Della Pietra
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

Re: How redirect lightweight webserver messages?

2009-07-17 Thread 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,

How redirect lightweight webserver messages?

2009-07-17 Thread Andrew
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 --~--~-~--~~~---~--~~