Subject: | Please consider adding something like Log4perl's logdie()? |
Maybe error_die() / fatal_die() or something.
It's a shortcut for error()/fatal() + die using the same error message.
It saves a couple of lines in the simplest case, and even more in the
more complex case (especially with errorf()/fatalf()).
Or maybe the log methods could return the generated string? That would
be a more generic solution as we can do anything about it. (Btw, posted
as another issue).