1 4 package com.openedit.generators; 5 6 import org.apache.velocity.runtime.RuntimeServices; 7 import org.apache.velocity.runtime.log.LogSystem; 8 9 12 public class VelocityLogger implements LogSystem 13 { 14 15 public VelocityLogger() 16 { 17 super(); 18 } 20 21 public void init( RuntimeServices arg0 ) throws Exception 22 { 23 25 } 26 27 public void logVelocityMessage( int inArg0, String inArg1 ) 28 { 29 switch(inArg0){ 30 case DEBUG_ID: 31 VelocityGenerator.log.debug(inArg1); 32 break; 33 case INFO_ID: 34 VelocityGenerator.log.info(inArg1); 35 break; 36 case ERROR_ID: 37 VelocityGenerator.log.error(inArg1); 38 break; 39 case WARN_ID: 40 VelocityGenerator.log.warn(inArg1); 41 break; 42 } 43 44 } 45 46 } 47 | Popular Tags |