Class JavaLoggingSupport

java.lang.Object
app.supernaut.logging.JavaLoggingSupport

public class JavaLoggingSupport extends Object
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 Details

  • Constructor Details

  • 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 file
      loggerName - The logger name
    • configure

      public static void configure(Class<?> rootClass, String loggerName)
      Configure logging using default resource file/path
      Parameters:
      rootClass - root class for calling getResourceAsStream()}
      loggerName - The logger name
    • setVerbose

      public static void setVerbose()
      Change log level (eg. as a result of `-v` command-line option)