1   package org.christianschenk.bibsonomy.export.utils;
2   
3   import org.apache.velocity.runtime.RuntimeServices;
4   import org.apache.velocity.runtime.log.LogChute;
5   
6   /**
7    * Initialize Velocity with:
8    * 
9    * <pre>
10   * Velocity.setProperty(Velocity.RUNTIME_LOG_LOGSYSTEM, new VelocityNoOutputLogger());
11   * Velocity.init();
12   * </pre>
13   * 
14   * @author Christian Schenk
15   */
16  public class VelocityNoOutputLogger implements LogChute {
17  
18  	public void init(RuntimeServices arg0) throws Exception {
19  	}
20  
21  	public boolean isLevelEnabled(int arg0) {
22  		return false;
23  	}
24  
25  	public void log(int arg0, String arg1, Throwable arg2) {
26  	}
27  
28  	public void log(int arg0, String arg1) {
29  	}
30  }