odd apache log output - single char outputs
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > odd apache log output - single char outputs




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    odd apache log output - single char outputs  
Jeff


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-05 10:53 PM

Im running a red hat linux 9, apache 2.0.54 system
setup with mod_security (mod_security Im new to).
I have several programs that log to the error_log
file.  C++ and php primarily.

I noticed that if I use <iostream> and cerr to
print to stderr, the log file gets the output
with 1 char per line for example 'test this'
would come out as:

t
e
s
t

t
h
i
s

(along with the other logging information.  Sorry Im not on
my linux box here to cut and paste the example).

When i switch to fprintf(stderr,"test this\n");

It comes out the way I expect it to:

test this

Anyone understand what this behavior is and how to fix it
so I can use <iostream> cerr properly?

Thanks in advance,
Jeff






[ Post a follow-up to this message ]



    Re: odd apache log output - single char outputs  
Jeff


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-05 10:53 PM

Forgot to mention one other thing, in both
fprintf and cerr cases, all my tab chars show
up as \t in the error_log.  They used to tab over 8 spaces, now they
just print \t

This goes for fprintf(stderr,"\t Hello"); or
when I hit the tab key within the quote marks.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:04 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register