Greg Hudson wrote:
>On Thu, 2005-07-21 at 14:51 -0500, Ben Collins-Sussman wrote:
>
>
>>>How does the receiving string know when one log message ends and
>>>another one begins?
>>>
>>>
>[I meant to write "receiving stream" there.]
>
>
>
>>I apologize for my ignorance. Why is this important?
>>
>>
>
>
>
>>A process wants to push a message (some number of bytes, usually
>>ending in \n) into a stream_t. Who cares where the message
>>'dividers' are?
>>
>>
>
>If you're logging via syslog(), you want to call syslog() with a
>complete log message, and not include a newline. I assume Windows event
>logging is similar.
>
>
It is. And by the way, _the same_ is true for log files on disk: you
want to use a single write() (or WriteFile() on Windows --
apr_file_write(), whatever) for a single log message, to ensure that
messages from different processes remain separate.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 22 09:26:15 2005