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

Ralph Goers commented on LOG4J2-41:
-----------------------------------

A brief discussion just took place on the Logback mailing list on this topic. A 
user wanted custom log levels. When asked why it was so they could split the 
existing levels into finer pieces. It was pointed out that this is what markers 
are for and serve the purpose well. Since Markers have been added to my 
implementation of log4j 2.0 I am going to conclude that this feature (exensible 
log levels) is related to LOG4J2-16, if not a duplicate of it.

IMO this approach makes the most sense since the Level can continue to be an 
Enum while still allowing the individual levels to be decorated.

> Extensible Log Level
> --------------------
>
>                 Key: LOG4J2-41
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-41
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: API
>            Reporter: Ralph Goers
>
> It is desirable to have the Level be an enum. However, it is also desirable 
> to let users add new log levels. These goals are in opposition to each other 
> since enum classes are final. In addition, adding new levels implies adding 
> new methods to the Logger interface (or some counterpart to it). This would 
> be unworkable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to