8000
Skip to content

json log formatter ignores with_newline flag when jsonize is false #129

@daisy1754

Description

@daisy1754

I wanted to change log format from json to hash, and tried below

logger.formatter.jsonize = false
logger.formatter.with_newline = true

Unfortunately 5C99 this will produce log without newline because as shown in code below, with_newline flag is ignored if jsonize is false

return data unless @jsonize

I'm happy to send PR to change behaviour but technically this will be breaking behaviour change so wanted to first open the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0