apache logs show tab character as \t from python scripts -


in python programs (django or web.py), write logs stderr. e.g.

sys.stderr.write('tab\tcharacter') 

when serving these programs via apache, logfiles has literal "\t", , not real tab (ascii=9)

if test program command line, see real tabs. it's in apache.

is there feature in apache logs converts tab character \t ?

is there way work around , see tabs in apache log files?

edit

i gave up. instead of \t i'm using character separator...

try:

a = "tab" + chr(9) + "character" sys.stderr.write(a) 

no?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -