[
https://issues.apache.org/jira/browse/LOG4J2-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944164#comment-13944164
]
Ralph Goers commented on LOG4J2-33:
-----------------------------------
Yes, I've seen that. What I had hoped was that all the logger calls could be
annotations, but Java 6 & 7 don't provide support for that. In Java 8
annotations aren't allowed everywhere but it may be possible to do a lot more.
I originally thought it would be cool if the annotations did nothing if logging
was disabled but then would inject code if it was. However, that doesn't seem
realistic the more I think about it.
> Support Annotations
> -------------------
>
> Key: LOG4J2-33
> URL: https://issues.apache.org/jira/browse/LOG4J2-33
> Project: Log4j 2
> Issue Type: New Feature
> Components: API
> Affects Versions: 2.0-rc2
> Reporter: Ralph Goers
> Fix For: 0.1, 2.0-rc2
>
> Attachments: 0001-Add-Loggable.patch
>
>
> The Log4j API should support using annotations as provided in Java 6 so
> applications can use them instead of calls to logger APIs. This is especially
> useful for entering & exiting type of events, but could be used wherever
> annotations are allowed.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]