Skip to content

Avoid unnecessary lambda calculations when logging is disabled #126

Open
@neikist

Description

@neikist

If we even have all log levels disabled, the lambda for the message is still calculated. This affects performance and memory consumption. We can add a second log method with a lambda argument instead of a string message and evaluate this lambda only if necessary.

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