oh, riiiight.. looks like i forgot the bridge when i added log4j dependency which is why that didn't work...

this will need to be updated (on release):
https://tapestry.apache.org/logging-in-tapestry.html

thanks.

On 21/10/2014 6:25 PM, Chris Poulsen wrote:
Maybe this helps?

https://github.com/apache/tapestry-5/blob/master/54_RELEASE_NOTES.md#logging-dependencies


On Tue, Oct 21, 2014 at 9:15 AM, Paul Stanton <pa...@mapshed.com.au> wrote:

I've created a simple test app with 5.4-beta-22:

the only dependency:
-----------------------------
         <dependency>
             <groupId>org.apache.tapestry</groupId>
             <artifactId>tapestry-core</artifactId>
             <version>5.4-beta-22</version>
         </dependency>

My Start.java:
-------------------
public class Start {
     @Inject
     private Logger log;

     void setupRender() {
         log.error("Start.setupRender");
         System.out.print("here");
     }
}

log4j.properties:
------------------------
log4j.rootCategory=TRACE, A1
# Console
log4j.appender.A1=org.apache.log4j.ConsoleAppender


When the page is loaded, only "here" is printed in the console.

I have also tested added log4j as a dependency:
         <dependency>
             <groupId>log4j</groupId>
             <artifactId>log4j</artifactId>
             <version>1.2.17</version>
         </dependency>

Same result.

What do I need to do to enable logging?

Thanks, Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to