Java???????????????
???????????? ???????[ 2017/5/27 11:13:27 ] ??????????????????? Java
????????????????
????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??????????????Щ?????????????????????????????????????ν?????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11