All Products
Search
Document Center

Blockchain as a Service:Logging interface

Last Updated:Oct 16, 2024

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
ClientEnv env = new ClientEnv();
ILogger logger = AbstractLoggerFactory.getInstance("MychainClientDemo");
env.setLogger(logger);