java.lang.Object
app.supernaut.logging.JavaLoggingSupport
GraalVM-compatible Support for using Java Logging
See: https://github.com/oracle/graal/blob/master/substratevm/LOGGING.md
The default log-level for command-line tools configured in logging.properties
should be `WARNING`. The `-v` command-line switch should set the level to `FINE`.
Request-logging in RpcClient is at the `FINE` (slf4j `debug`) level.
TODO: Create a command-line option to set finer-grained log levels
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The default path of the logging properties file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Configure logging using default resource file/pathstatic void
Configure logging.static void
Change log level (eg.
-
Field Details
-
DEFAULT_PROPERTIES_PATH
The default path of the logging properties file- See Also:
-
-
Constructor Details
-
JavaLoggingSupport
public JavaLoggingSupport()
-
-
Method Details
-
configure
public static void configure(Class<?> rootClass, String loggingPropertiesResource, String loggerName) Configure logging. Should be one of the first things called in `main()`- Parameters:
rootClass
- root class for calling getResourceAsStream()}loggingPropertiesResource
- Path to logging configuration properties resource fileloggerName
- The logger name
-
configure
Configure logging using default resource file/path- Parameters:
rootClass
- root class for calling getResourceAsStream()}loggerName
- The logger name
-
setVerbose
Change log level (eg. as a result of `-v` command-line option)
-