All Products
Search
Document Center

Log Interface

Last Updated: May 24, 2019

LoggerFactory

  • Function descriptions
Function name Parameter type Description
setInstance org.slf4j.Logger The slf4j logger instance.
setInstance ILogger The user-defined log operation.
getlogger None Obtains the current logger.
  • Examples
  1. Logger logger = org.slf4j.LoggerFactory.getLogger(DemoSample.class);
  2. LoggerFactory.setInstance(logger);