Class JavaLoggingSupport

java.lang.Object
org.consensusj.jsonrpc.cli.JavaLoggingSupport

public class JavaLoggingSupport extends Object
GraalVM-compatible support for using Java Logging.

See: add-logging-to-native-executable.md"LOGGING.md

The default log-level for command-line tools configured in logging.properties should be Level.WARNING. The -v command-line switch should set the level to Level.FINE. Request-logging in JsonRpcClientHttpUrlConnection is at the Level.FINE (slf4j debug) level.

  • Constructor Details

  • Method Details

    • configure

      public static void configure(String loggerName)
      Configure logging. Should be one of the first things called in `main()`
    • setVerbose

      public static void setVerbose()
      Change log level (eg. as a result of `-v` command-line option) This sets the level to Level.FINE
    • setLogLevel

      public static void setLogLevel(Level level)
      Change log level (eg. as a result of `-log=level` command-line option)
      Parameters:
      level - j.u.logging log level