Skip to content

Feature Request: Conditional Logging options #299

Description

@gabrielOttopia

Description / Use Case for a Feature

I often times want only to log something if an action fails. It would make my code a lot cleaner if i could do something like
logger.conditional.info(true, "log msg")
or info.conditional

I could create a function that does this but it would be nice to be built into the logger!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions