Package org.consensusj.jsonrpc.cli
Class JavaLoggingSupport
java.lang.Object
org.consensusj.jsonrpc.cli.JavaLoggingSupport
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Configure logging.static void
setLogLevel
(Level level) Change log level (eg.static void
Change log level (eg.
-
Constructor Details
-
JavaLoggingSupport
public JavaLoggingSupport()
-
-
Method Details
-
configure
Configure logging. Should be one of the first things called in `main()` -
setVerbose
Change log level (eg. as a result of `-v` command-line option) This sets the level toLevel.FINE
-
setLogLevel
Change log level (eg. as a result of `-log=level` command-line option)- Parameters:
level
- j.u.logging log level
-