????????????????
????java.util.logging(jul)
????JDK?????????????
????log4j
?????????????????????
????logback
????log4j??????汾????log4j??и?????????????????????????????
????logback???3???????logback-core?? logback-classic ?? logback-access??
????logback-core????logback?????????????????????????????
????logback-classic???????slf4j??API????????????slf4j??????????????????????
????logback-access????????Servlet????????????????HTTP-access??????????
???????????????
????commons-logging(jcl)
????Apache????????????????jcl?????????????????????????????????????jcl??API???п?????
????slf4j
?????????The Simple Logging Facade for Java??????????????????????
????slf4j???????????????classpath?е?????????(log4j?? logback??)????????????????????????????slf4j??API???п?????????????????????????????????????????????
????slf4j?????????????
????slf4j?????????????а??????????(Binding)??
????· slf4j-jdk14: slf4j??jdk-logging??Binding
????· slf4j-log4j12: slf4j??log4j1??Binding
????· log4j-slf4j-impl: slf4j??log4j2??Binding
????· logback-classic: slf4j??logback??Binding
????· slf4j-jcl: slf4j??commons-logging??Binding
????PS: ???????ЩBinding??classpath?????????????????ж??????????????????slf4j?????????
?????????????API???slf4j???????
?????????ó?????????????????????API?????п?????????ó??????????????????????????API??????????????????????????????????????slf4j????????????????
??????????????????Щ??
????· jul-to-slf4j: jdk-logging??slf4j???????
????· log4j-over-slf4j: log4j1??slf4j???????
????· jcl-over-slf4j: commons-logging??slf4j???????
??????????????????????ó????????????log4j???????????????????????????log4j??API?????????????????????????????????????logback???????????????log4j????????????slf4j-api??logback-classic??log4j-over-slf4j??????????log4j??????????????????log4j-over-slf4j?滻???????????????????log4j???????????????slf4j????slf4j???????logback??????????????л????????
????PS: ???????Binding?????????????Щ?????????????????????????????????ó????м???????slf4j-log4j12??log4j-over-slf4j????slf4j????????????log4j????log4j????????????slf4j?????????γ???????????????Binding??????????????Щ?????????????????????????????????????ν?????