Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3033

LogBuilder don't require a message

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.0
    • Component/s: None
    • Labels:
      None

      Description

      So based on the documentation, it looks like when you use a LogBuilder that a message is required. I personally set throwable only logging messages to "". It'd be nice to not have to set one. Maybe this:

      logger.atError().withThrowable(exception).log();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                xenoterracide Caleb Cushing
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: