The current log-format is hardcoded into the application, which causes issues with my JSON log parsers as the format written to the stdout/stderr is not JSON.
The logline gets appended with DateTime and log level outside the scope of my JSON which is not desirable for me.
I have added a simple CLI argument that can be overridden to pass custom formats which are then written to the destination. The argument still keeps the current implementation intact and allows a user to change the format.
The current
log-format
is hardcoded into the application, which causes issues with my JSON log parsers as the format written to the stdout/stderr is not JSON.Current Behavior
The logline gets appended with
DateTime
andlog level
outside the scope of my JSON which is not desirable for me.I have added a simple CLI argument that can be overridden to pass custom formats which are then written to the destination. The argument still keeps the current implementation intact and allows a user to change the format.