Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.tectonica.log;
 
Configures J.U.L by dynamically loading a logging.properties file from the classpath. To use:
  1. put logging.properties in the src/main/resources folder
  2. add the following to your JVM arguments:
     -Djava.util.logging.config.class=com.tectonica.log.LogConfig
     

Author(s):
Zach Melamed
public class LogConfig
	public LogConfig() throws Exception
	{
		try (InputStream ins = ClassLoader.getSystemResourceAsStream("logging.properties"))
		{
		}
		catch (Exception e)
		{
		}
	}
New to GrepCode? Check out our FAQ X