You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2021/03/05 15:37:00 UTC

[jira] [Commented] (LOG4J2-3033) LogBuilder don't require a message

    [ https://issues.apache.org/jira/browse/LOG4J2-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17296104#comment-17296104 ] 

Ralph Goers commented on LOG4J2-3033:
-------------------------------------

I included this in the fix for LOG4J2-2947.

> LogBuilder don't require a message
> ----------------------------------
>
>                 Key: LOG4J2-3033
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3033
>             Project: Log4j 2
>          Issue Type: New Feature
>            Reporter: Caleb Cushing
>            Priority: Major
>
> 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:
> {code:java}
> logger.atError().withThrowable(exception).log();{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)