enhanced handling of multi-line logging messages