/*
 */

package org.subethamail.core.util;

import javax.annotation.PostConstruct;
import javax.ejb.Startup;
import javax.inject.Inject;
import javax.inject.Singleton;
import javax.servlet.ServletContext;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * This is a cheesey singleton that makes the context path of our application
 * available as a static.  It's a bit of a hack but this information needs to
 * be available in a lot of places that it's inconvenient to use injection.
 * I blame the crappy Servlet spec.
 *
 * @author Jeff Schnitzer
 */
@Singleton
@Startup
public class ContextAware
{
	/** */
	private final static Logger log = LoggerFactory.getLogger(ContextAware.class);

	/** */
	private static String contextPath;
	
	/** */
	public static String getContextPath() { return contextPath; }
	
	/** */
	@Inject ServletContext ctx;
	
	/** */
	@PostConstruct
	public void startup()
	{
		contextPath = this.ctx.getContextPath();
		
		log.debug("Application context path is: " + contextPath);
	}
}

@@ -38,24 +38,59 @@
 re.util;%0D%0A%0D%0A
+import java.util.logging.Level;%0D%0A%0D%0A
 import javax
@@ -113,24 +113,24 @@
 Construct;%0D%0A
-
 import javax
@@ -256,57 +256,30 @@
 ort 
-org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory
+lombok.extern.java.Log
 ;%0D%0A%0D
@@ -614,16 +614,22 @@
 tartup%0D%0A
+@Log%0D%0A
 public c
@@ -654,100 +654,8 @@
 %0A%7B%0D%0A
-%09/** */%0D%0A%09private final static Logger log = LoggerFactory.getLogger(ContextAware.class);%0D%0A%0D%0A
 %09/**
@@ -929,14 +929,23 @@
 log.
-debug(
+log(Level.FINE,
 %22App
@@ -974,11 +974,13 @@
 is: 
-%22 +
+%7B0%7D%22,
  con

switch logging framework