Skip to content

Potentially allowing for log_and_die to be used in a terse fashion #62

@ghost

Description

Greetings. Would either of the following API adjustments be considered as acceptable? Firstly, for log_and_die and log_and_croak to allow for the level parameter to be optional, defaulting to "error". Secondly, for the same methods - or perhaps new ones - to accept a single parameter containing the message.

$log->log_and_die(level => 'error', message => 'Something happened');
$log->log_and_die(message => 'Something happened');
$log->log_and_die('Something happened');
$log->die('Something happened'); # ... perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions