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
Post a Comment