Skip to content

JUL EcsFormatter boolean parameter values are ignored #133

Closed
@odonati-fr

Description

@odonati-fr

The boolean parameters values (in co.elastic.logging.jul.EcsFormatter's constructor) are loaded using java method Boolean.getBoolean(property) instead of Boolean.parseBoolean(string).

So if logging.properties contains:
co.elastic.logging.jul.EcsFormatter.stackTraceAsArray=true
the formatter property stackTraceAsArray will be true only if a system property named "true" with value "true" exists.

It's a workaround but I don't think it was intended that way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-javabugSomething isn't workingcommunityIssues and PRs created by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions