Multi line JSON logs are not getting parsed by our logging system, adding an optional flag to disable this with -log-pretty-print=false so that the whole JSON object is printed on one line. Defaulting to the existing behaviour.
Example:
$ ./ccloudexporter
{
"level": "fatal",
"msg": "CCLOUD_API_KEY environment variable has not been specified",
"time": "2021-01-05T10:20:58Z"
}
$ ./ccloudexporter -log-pretty-print=false
{"level":"fatal","msg":"CCLOUD_API_KEY environment variable has not been specified","time":"2021-01-05T10:14:52Z"}
Multi line JSON logs are not getting parsed by our logging system, adding an optional flag to disable this with
-log-pretty-print=false
so that the whole JSON object is printed on one line. Defaulting to the existing behaviour.Example: