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.
- is depended upon by
LOG4J2-519 Custom/Extended Loggers
- is related to
LOG4J2-16 Provide support for SLF4J type Markers