Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0-rc1
-
None
Description
public class Example { private final static Logger FORMATTER_LOGGER = LogManager.getFormatterLogger(Example.class); private final static Logger LOGGER = LogManager.getLogger(Example.class); public static void main(String[] args) { LOGGER.log(ERROR, "{} happened", "Something"); FORMATTER_LOGGER.log(ERROR, "%s happened", "Something"); } }
13:40:35.401 [main] ERROR com.example.Example - {} happened 13:40:35.404 [main] ERROR com.example.Example - Something happened
After inverting the two constant declarations:
13:41:13.730 [main] ERROR com.example.Example - Something happened 13:41:13.732 [main] ERROR com.example.Example - %s happened