• Post Reply Bookmark Topic Watch Topic
  • New Topic

util.Properties and Logger doubt  RSS feed

 
Jayasri Alaparthi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
Can any one expain me the code given below in detail.
/*Load properties*/

public void loadProperties(Properties properties) throws Exception{

this.properties = properties;
String logConfigFile = properties.getProperty(LOGGER_CONFIG_KEY);
Properties props = new Properties();
PropertiesUtil.loadPropertiesFromFile(props, logConfigFile);
if(props.isEmpty())
throw new ConfigurationException("No logger properties were loaded");
LoggerFactory factory = LoggerFactory.getDefaultLoggerFactory();
factory.configure(props);
logger = factory.getLogger(getClass());
}

Advance Thanks,
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a question about Apache Tomcat. Before you post a question, please take a moment to choose the correct forum.

I am moving this to Java in General (Intermediate).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!