Class Slf4jLogger

  • All Implemented Interfaces:
    IgniteLogger

    public class Slf4jLogger
    extends Object
    implements IgniteLogger
    SLF4J-based implementation for logging. This logger should be used by loaders that have prefer slf4j-based logging.

    Here is an example of configuring SLF4J logger in Ignite configuration Spring file:

          <property name="gridLogger">
              <bean class="org.apache.ignite.logger.slf4j.Slf4jLogger"/>
          </property>
     

    It's recommended to use Ignite's logger injection instead of using/instantiating logger in your task/job code. See LoggerResource annotation about logger injection.