Problem/Motivation

When the jsonlog module is set to log to stdout, the logs of some processes like the drupal cron are being buffered and then written to stdout in one line without making a newline for each entry, which cause some log parser to mark it as en error.

Steps to reproduce

Set jsonlog module to log to stdout
run drupal in a docker container with ngnix and php-fpm
run system-> cron of drupal
read docker logs of container

Proposed resolution

Append a newline \n when going into the output to stdout option Line 130 JsonLog.php

Remaining tasks

User interface changes

API changes

Data model changes

Comments

dracleen’s picture

Issue summary: View changes