maven-doxia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio giustina (JIRA)" <>
Subject [jira] Created: (DOXIA-42) Reduce velocity verbosity
Date Sat, 31 Dec 2005 17:25:12 GMT
Reduce velocity verbosity

         Key: DOXIA-42
     Project: doxia
        Type: Wish

    Versions: 1.0-alpha-5    
    Reporter: fabrizio giustina

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:
            // msg );
            //    break;

            case WARN_ID:
                log.warn( msg );

            case ERROR_ID:
                log.error( msg );

                log.debug( msg );

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message