Hi,

Got two problems when using logger with T5:

1)
        @Inject
    private Logger logger;

    private void doTest() {
        logger.info("test logging");
    }
    
    I got an exception:
    org.apache.tapestry.internal.services.TransformationException: Error
obtaining injected value for field org.bfe.istudio.t5.pages.Home.logger: No
service implements the interface org.apache.log4j.Logger.
    why?

2)
        private static Logger logger2 = Logger.getLogger(Home.class);
    private void doTest() {
        logger2.info("test logging");
    }
    
    This works, but I can't see the logging in the IDE's log, but I can see
those coming from System.out.println, why?

Thanks,
A.C.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Two-logging-related-questions-tp14246512p14246512.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to