Skip to content

Feature Request: logger methods to always return nil #46

@olleolleolle

Description

@olleolleolle

Background: Expected return value of a logging method call is nil.

Current behavior can be seen here.

TL;DR: When parentcall is nil, the @outputters collection will surprisingly be the return value of the call mylogger.warn 'halleluja'. That value is something like [], .i.e non-nil.

Proposed change: add a final nil line as the last line of the dynamically-defined "log-level methods".

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