For logging purposes it would be great if we're able to change the prefix that's now prepended to all log lines (stdout/stderr). For example: We're logging JSON objects, but any parsing of them by log aggregators is broken by the prepending of "[{} {}] ".format(self.job_name, self.stream_name), if we're able to change this prefix (i.e. to an empty string), we would be able to stream our logs.
What I Did
Created an extra option (that yet needs needs to documented) called streamPrefix to optinally set the prefix where the current prefix is the default.
See PR #58
Description
For logging purposes it would be great if we're able to change the prefix that's now prepended to all log lines (stdout/stderr). For example: We're logging JSON objects, but any parsing of them by log aggregators is broken by the prepending of
"[{} {}] ".format(self.job_name, self.stream_name)
, if we're able to change this prefix (i.e. to an empty string), we would be able to stream our logs.What I Did
Created an extra option (that yet needs needs to documented) called
streamPrefix
to optinally set the prefix where the current prefix is the default. See PR #58