Python/Django: log to console under runserver, log to file under Apache
Posted
by
Justin Grant
on Stack Overflow
See other posts from Stack Overflow
or by Justin Grant
Published on 2010-12-29T23:44:57Z
Indexed on
2010/12/29
23:54 UTC
Read the original article
Hit count: 165
How can I send trace messages to the console (like print
) when I'm running my Django app under manage.py runserver
, but have those messages sent to a log file when I'm running the app under Apache?
I reviewed Django logging and although I was impressed with its flexibility and configurability for advanced uses, I'm still stumped with how to handle my simple use-case.
My apologies for not being able to find the answer elsewhere-- this is a newbie question I know.
© Stack Overflow or respective owner