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?
Greetings. Would either of the following API adjustments be considered as acceptable? Firstly, for
log_and_dieandlog_and_croakto 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.