Re: T5: How do I configure logging for a service?

2008-02-05 Thread Howard Lewis Ship
Logging is based on the class name of the module that defined the
service, then the service id, i.e.

log4j.category.org.example.myapp.services.AppModule.MyService=info


On Feb 5, 2008 11:24 AM, Filip S. Adamsen [EMAIL PROTECTED] wrote:
 Hi,

 I'm having trouble configuring logging for my services. What exactly is
 the name of the logger handed to my service?

 I thought log4j.logger.com.myapp=debug in log4j.properties would turn on
 logging for all my services, but this doesn't seem to work.
 log4j.category.com.myapp=debug doesn't work either.

 I've checked the documentation but have been unable to find anything
 about this.

 -Filip

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





-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



RE: T5: How do I configure logging for a service?

2008-02-05 Thread Jonathan Barker
Filip,

Recent versions of T5 have used slf4j, not log4j.  Having said that, the
underlying logger is often log4j.

What app server?

JBoss, for example, has all logging configured through a log4j.xml file in
the server conf directory.


Jonathan



 -Original Message-
 From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2008 2:24 PM
 To: Tapestry users
 Subject: T5: How do I configure logging for a service?
 
 Hi,
 
 I'm having trouble configuring logging for my services. What exactly is
 the name of the logger handed to my service?
 
 I thought log4j.logger.com.myapp=debug in log4j.properties would turn on
 logging for all my services, but this doesn't seem to work.
 log4j.category.com.myapp=debug doesn't work either.
 
 I've checked the documentation but have been unable to find anything
 about this.
 
 -Filip
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



T5: How do I configure logging for a service?

2008-02-05 Thread Filip S. Adamsen

Hi,

I'm having trouble configuring logging for my services. What exactly is 
the name of the logger handed to my service?


I thought log4j.logger.com.myapp=debug in log4j.properties would turn on 
logging for all my services, but this doesn't seem to work. 
log4j.category.com.myapp=debug doesn't work either.


I've checked the documentation but have been unable to find anything 
about this.


-Filip

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



RE: T5: How do I configure logging for a service?

2008-02-05 Thread Jonathan Barker
Filip,

I use JettyLauncher (using JettyPlus) in Eclipse for development, and I have
a log4j.properties (that is being respected) located at the base of my
resources directory (so effectively /WEB-INF/classes/).

Actually, I spoke too soon.  It is respected for some parts of my app (like
Hibernate and Spring) but not for my basic pages and services.

Removing the log4j.jar from my Eclipse project's classpath worked.
Strangely, I have to include log4j.jar in my WEB-INF/lib if I'm deploying to
JBoss, but it's causing problems in Jetty.

There are some notes about possible problems when using log4j, or other
loggers, directly in applications:

http://jetty.mortbay.org/jetty5/tut/logging.html


Jonathan


 -Original Message-
 From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2008 4:06 PM
 To: Tapestry users
 Subject: Re: T5: How do I configure logging for a service?
 
 Hi Jonathan,
 
 I know about slf4j, I'm just using log4j as my framework of choice - for
 now.
 
 Regarding app server... I'm actually just running this through Jetty
 (using the Maven plugin) right now, but will be deploying to Tomcat in
 production - it's not a big application.
 
 -Filip
 
 Jonathan Barker skrev:
  Filip,
 
  Recent versions of T5 have used slf4j, not log4j.  Having said that, the
  underlying logger is often log4j.
 
  What app server?
 
  JBoss, for example, has all logging configured through a log4j.xml file
 in
  the server conf directory.
 
 
  Jonathan
 
 
 
  -Original Message-
  From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 05, 2008 2:24 PM
  To: Tapestry users
  Subject: T5: How do I configure logging for a service?
 
  Hi,
 
  I'm having trouble configuring logging for my services. What exactly is
  the name of the logger handed to my service?
 
  I thought log4j.logger.com.myapp=debug in log4j.properties would turn
 on
  logging for all my services, but this doesn't seem to work.
  log4j.category.com.myapp=debug doesn't work either.
 
  I've checked the documentation but have been unable to find anything
  about this.
 
  -Filip
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: T5: How do I configure logging for a service?

2008-02-05 Thread Filip S. Adamsen

Hey,

I actually solved my problem. I'm running the maven-jetty-plugin through 
IntelliJ IDEA and hadn't noticed that Maven's output level was set to 
INFO - hence I didn't see my debug messages. So it's all good now.


Thank you for your help. :)

-Filip

Jonathan Barker skrev:

Filip,

I use JettyLauncher (using JettyPlus) in Eclipse for development, and I have
a log4j.properties (that is being respected) located at the base of my
resources directory (so effectively /WEB-INF/classes/).

Actually, I spoke too soon.  It is respected for some parts of my app (like
Hibernate and Spring) but not for my basic pages and services.

Removing the log4j.jar from my Eclipse project's classpath worked.
Strangely, I have to include log4j.jar in my WEB-INF/lib if I'm deploying to
JBoss, but it's causing problems in Jetty.

There are some notes about possible problems when using log4j, or other
loggers, directly in applications:

http://jetty.mortbay.org/jetty5/tut/logging.html


Jonathan



-Original Message-
From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 05, 2008 4:06 PM
To: Tapestry users
Subject: Re: T5: How do I configure logging for a service?

Hi Jonathan,

I know about slf4j, I'm just using log4j as my framework of choice - for
now.

Regarding app server... I'm actually just running this through Jetty
(using the Maven plugin) right now, but will be deploying to Tomcat in
production - it's not a big application.

-Filip

Jonathan Barker skrev:

Filip,

Recent versions of T5 have used slf4j, not log4j.  Having said that, the
underlying logger is often log4j.

What app server?

JBoss, for example, has all logging configured through a log4j.xml file

in

the server conf directory.


Jonathan




-Original Message-
From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 05, 2008 2:24 PM
To: Tapestry users
Subject: T5: How do I configure logging for a service?

Hi,

I'm having trouble configuring logging for my services. What exactly is
the name of the logger handed to my service?

I thought log4j.logger.com.myapp=debug in log4j.properties would turn

on

logging for all my services, but this doesn't seem to work.
log4j.category.com.myapp=debug doesn't work either.

I've checked the documentation but have been unable to find anything
about this.

-Filip

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


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



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



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




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