BIND 10 #1704: log output mixed
BIND 10 Development
do-not-reply at isc.org
Mon Mar 26 09:21:28 UTC 2012
#1704: log output mixed
-------------------------------------+-------------------------------------
Reporter: jreed | Owner:
Type: | Status: new
defect | Milestone:
Priority: | Sprint-20120403
medium | Resolution:
Component: | Sensitive: 0
logging | Sub-Project: Core
Keywords: | Estimated Difficulty: 15
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by shane):
So the mixing of these messages is not completely random. They appear to
be in blocks. My suspicion is that the underlying Unix write() gets called
for each element:
* date/time
* level
* process/library
* message
I think this issue is that on console output to stderr this write gets
flushed immediately, not at end of line, because the C++ output library
does not buffer writes at all.
When writing to a file, the C++ output library buffers, but then we tell
log4cplus to flush at the end of each log message, which is exactly
correct.
If this is correct we should be able to fix this problem for the console
by ''enabling'' buffering for cerr.
--
Ticket URL: <http://bind10.isc.org/ticket/1704#comment:15>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list