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

LogBuilder don't require a message

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.15.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: