gjcarneiro / yacron

A modern Cron replacement that is Docker-friendly
MIT License
449 stars 38 forks source link

Optional stream line prefix #59

Closed eelkeh closed 2 years ago

eelkeh commented 2 years ago

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