@@ -1428,15 +1428,15 @@ <h2>Implementing the SLF4J API</h2>
14281428 < dd >
14291429
14301430 < p > Adding supporting for the SLF4J is surprisingly
1431- easy. Essentially, you coping an existing provider and tailoring
1431+ easy. Essentially, you copying an existing provider and tailoring
14321432 it a little (as explained below) does the trick.
14331433 </ p >
14341434
14351435 < p > Assuming your logging system has notion of a
14361436 logger, called say < code > MyLogger</ code > , you need to provide
14371437 an adapter for < code > MyLogger</ code > to
14381438 < code > org.slf4j.Logger</ code > interface. Refer to slf4j-jcl,
1439- slf4j-jdk14, and slf4j-log4j12 modules for examples of
1439+ slf4j-jdk14, and slf4j-reload4j modules for examples of
14401440 adapters.
14411441 </ p >
14421442
@@ -1452,9 +1452,9 @@ <h2>Implementing the SLF4J API</h2>
14521452 < code > MyLoggerAdapter</ code > , and a factory, namely
14531453 < code > MyLoggerFactory</ code > , the last remaining step is to
14541454 modify the < code > StaticLoggerBinder</ code > class so that it
1455- returns an new instance of < code > MyLoggerFactory</ code > . You
1456- will also need to modify the
1457- < code > loggerFactoryClassStr </ code > variable .
1455+ returns an new instance of < code > MyLoggerFactory</ code > . Note
1456+ that as of version 2.0, you need to
1457+ implement < code > SLF4JServiceProvider </ code > .
14581458 </ p >
14591459
14601460 < p > For Marker or MDC support, you could use the one of the
@@ -1470,9 +1470,11 @@ <h2>Implementing the SLF4J API</h2>
14701470 < code > org.slf4j.Logger</ code > interface
14711471 </ li >
14721472 < li > create a factory for the adapter created in the previous step,</ li >
1473- < li > modify < code > StaticLoggerBinder</ code > class to use the
1474- factory you created in the previous step</ li >
1475- </ ol >
1473+ < li > implement < code > SLF4JServiceProvider</ code > class to use
1474+ the factory you created in the previous step; for SLF4J
1475+ versoin 1.7 and earlier, you need to
1476+ copy < code > StaticLoggerBinder</ code > </ li >
1477+ </ y >
14761478
14771479
14781480 </ dd >
0 commit comments