Mantis - Resin
Viewing Issue Advanced Details
5071 minor always 05-09-12 23:43 05-29-12 11:41
rickHigh  
ferg  
normal  
closed  
fixed  
none    
none 4.0.28  
0005071: Logger.exiting does not work with Resin for formmating parameters
            log.exiting(this.getClass().getName(), "updateBook", new Object[]{id, title, description, price, pubDate});

Not formating parameters correctly with default EL formatter from Resin.

[12-05-09 23:26:57.284]FINER BookRepositoryJDBCImpl updateBook msg= ENTRY 5 Peace and Peace 33 05/05/1999
[12-05-09 23:26:57.288]FINER BookRepositoryJDBCImpl updateBook msg= RETURN [Ljava.lang.Object;@24164d75

The return should read

_______

 BookRepositoryJDBCImpl updateBook msg= RETURN 5 Peace and Peace 33 05/05/1999

Not

BookRepositoryJDBCImpl updateBook msg= RETURN [Ljava.lang.Object;@24164d75

_________



    @Override
    public void updateBook(final String id, final String title, final String description,
            final String price, final String pubDate) {
        
        if (log.isLoggable(Level.FINER)) {
            log.entering(this.getClass().getName(), "updateBook", new Object[]{id, title, description, price, pubDate});
        }
                ...
        if (log.isLoggable(Level.FINER)) {
            log.exiting(this.getClass().getName(), "updateBook", new Object[]{id, title, description, price, pubDate});
        }

    }

Notes
(0005790)
ferg   
05-29-12 11:41   
env/023i

Although, the example is incorrect because exiting is supposed to use the return value, not the parameter value.