[ http://jira.codehaus.org/browse/DOXIA-42?page=comments#action_54638 ]
Trygve Laugstol commented on DOXIA-42: -------------------------------------- This should probably be done in the Plexus Velocity component. > Reduce velocity verbosity > ------------------------- > > Key: DOXIA-42 > URL: http://jira.codehaus.org/browse/DOXIA-42 > Project: doxia > Type: Wish > Versions: 1.0-alpha-5 > Reporter: fabrizio giustina > > Original Estimate: 5 minutes > Remaining: 5 minutes > > velocity is too verbose with log messages at info level, and the quantity of > output to System.out during rendering is really annoying. There is also a > recurring warning message related to a missing macro library. > This could be fixed by: > - add the following at initialization of VelocityEngine to avoid the warning > message: > // avoid "unable to find resource 'VM_global_library.vm' in any > resource loader." > engine.setProperty( "velocimacro.library", "" ); > - handle "info" message as debug ones in the log implementation, e.g like it > has been done in JXR with: > public void logVelocityMessage( int level, String msg ) > { > switch ( level ) > { > // velocity info messages are too verbose, just consider them as > debug messages... > // case INFO_ID: > // log.info( msg ); > // break; > case WARN_ID: > log.warn( msg ); > break; > case ERROR_ID: > log.error( msg ); > break; > default: > log.debug( msg ); > break; > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira