Refactor logging core into multiple functions, support multi-line logging
commitd5b87adb88ba1ebfb9424db16fa4ca709b993ade
authorChristian Thaeter <ct@pipapo.org>
Thu, 28 Jan 2010 06:45:32 +0000 (28 07:45 +0100)
committerChristian Thaeter <ct@pipapo.org>
Thu, 28 Jan 2010 06:45:32 +0000 (28 07:45 +0100)
treec1335bf4644bd9f218529985431d83c07668bd5c
parent61c5446341f3065162087b7887591c36e2c0cc96
Refactor logging core into multiple functions, support multi-line logging

log messages can now contain newline characters '\n' to break lines.
Each such new line will emit a new logging line with the same header
(same logging event number).

This multiline logging is atomic and will not be mixed with other log
output.

The logging callback function is called for each emited line, while the
postlogging callback is still only called once after the output.
src/nobug.c
tests/10singlethreading_alpha.tests
tests/10singlethreading_beta.tests
tests/10singlethreading_release.tests
tests/20multithreading_alpha.tests
tests/example.c