Class LoggingConfiguration
- java.lang.Object
-
- com.activeviam.risk.starter.logging.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.LoggingConfigurationThis 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
-
-
Constructor Summary
Constructors Constructor Description LoggingConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStream
asStream(Map<String,Level> levels)
Present the log levels as a configuration input stream.
-
-
-
Constructor Detail
-
LoggingConfiguration
public LoggingConfiguration() throws IOException
- Throws:
IOException
-
-
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
-
-