Class LoggingConfiguration


  • public class LoggingConfiguration
    extends Object
    java.util.logging configuration class with the following features:
    • Define independently the log levels of the main ActivePivot components
    • Define both a console handler and a file handler
    • Apply the QFS formatter to enrich log records with the current thread and the current user.

    To load this class at the JVM startup time, add the following VM option:
    -Djava.util.logging.config.class=com.activeviam.risk.starter.logging.LoggingConfiguration

    This configuration class is designed to be used programmatically, when deploying in the Jetty server. When deploying in Apache Tomcat, use the logging.properties based configuration.

    Author:
    ActiveViam
    • Method Detail

      • asStream

        public static InputStream asStream​(Map<String,​Level> levels)
        Present the log levels as a configuration input stream.
        Parameters:
        levels - the levels of logging per logger
        Returns:
        input stream