All Products
Document Center

Logging interface

Last Updated: May 08, 2020

AbstractLoggerFactory can be an SLF4J API or a JDK native API.

  • Function description
Function name Parameter type Function description
setLogger ILogger The logger instance.
getlogger None Obtains the current logger.
  • Example
  1. ClientEnv env = new ClientEnv();
  2. ILogger logger = AbstractLoggerFactory.getInstance("MychainClientDemo");
  3. env.setLogger(logger);