Velocity upgrade from 1.7 to 2.0
问题 I am trying to migrate from velocity 1.7 where I use LogChute interface. In my current implementation I have used the log method to get the velocity log level and comparing our own log level. Please see the code below. @Override public void log(int level, String message) { LogLevel projLevel = null; switch ( level ) { case LogChute.DEBUG_ID: projLevel = LogLevel.DEBUG ; break ; case LogChute.INFO_ID: projLevel = LogLevel.INFO ; break ; case LogChute.WARN_ID: projLevel = LogLevel.WARNING ;