[dev] http_request->connection->log, cycle->log and ending '\n'

Manlio Perillo manlio_perillo at libero.it
Sun Dec 16 23:21:02 MSK 2007


I have noted a difference in the log output of 
http_request->connection->log and cycle->log and ending.

For the former, an ending new line character is ignored, so writing
"log line" and "log line\n" is equivalent (but extra '\n' are not ignored).
For the latter, the ending new line character is never ignored.

What's the cause of this?
I would like to ignore an ending new line character for cycle->log, too.

Thanks  Manlio Perillo

More information about the nginx mailing list