Skip to content

Tips for logging #220

@toadslop

Description

@toadslop

Suggestion

Add tips for avoiding errors when logging.

Every application requires some kind of logging. I think that’s a given. This linter, while excellent, always highlights any logging statement as an error. Though it is true that logging does violate a principle of functional programming in a technical sense, no program actually forgoes logging altogether — they just use functional constructs to wrap their logging statements, like the IO monad. However, this longer provides no feedback for how to log properly, and not only that, if you try to write an IO monad it’ll throw tons of errors telling you that your monad isn’t functional. A linter-approved logging system would be helpful as well as details for how to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DocumentationSolely about the documentation of the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions