You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vasili Petrenko <va...@devintime.de> on 2014/03/26 11:59:58 UTC

log4j.properties configuration not working

Hi.

I'm using Tapestry 5.3.7 with JBOSS 7 application server. My log4j
configuration don*t work.

 

I put the log4j.properties file to resource folder: src/main/resources

 

My file:

log4j.rootCategory=warn, A1

 

log4j.appender.A1=org.apache.log4j.ConsoleAppender

 

log4j.appender.A1.layout=org.apache.log4j.PatternLayout

log4j.appender.A1.layout.ConversionPattern=[%p] %c{2} %m%n

 

log4j.category.mypackage.services.AppModule.TimingFilter=warn

 

log4j.category.org.apache.tapestry5.services.TapestryModule.ComponentClassRe
solver=warn

 

log4j.category.org.apache.tapestry5.TapestryFilter=warn

 

log4j.category.mypackager=warn

 

log4j.category.org.apache.tapestry5=warn

 

What is wrong?

 


Re: AW: log4j.properties configuration not working

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 26 Mar 2014 10:05:21 -0300, Vasili Petrenko  
<va...@devintime.de> wrote:

> Hi.
> thank you. What I should do to control logging log4j in tapestry app.

The same as you would in a non-Tapestry application, hence the  
off-topicness of your question.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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


Re: log4j.properties configuration not working

Posted by Geoff Callender <ge...@gmail.com>.
IMHO, you should not try to put logging config in your app. Logging is something you'll want to configure differently in each environment (UAT, prod, your dev, your mate's dev, etc) without changing the app. 

So, since you mentioned you want to run in JBoss 7 (but you didn't mention which one - there are many 7.*), I'd suggest you google "jboss 7.1.1 configure log4j"

And don't forget about -Dlog4j.configuration=yourPropertyFilePath. Maybe you could put that in JAVA_OPTS before you start JBoss.

On 27/03/2014, at 12:05 AM, Vasili Petrenko wrote:

> Hi.
> thank you. What I should do to control logging log4j in tapestry app. I only put log4j.properties file in resource folder and have no effect.
> 
> Must I do more?
> 
> -----Ursprüngliche Nachricht-----
> Von: Thiago H de Paula Figueiredo [mailto:thiagohp@gmail.com] 
> Gesendet: Mittwoch, 26. März 2014 12:54
> An: Tapestry users
> Betreff: Re: log4j.properties configuration not working
> 
> On Wed, 26 Mar 2014 07:59:58 -0300, Vasili Petrenko <va...@devintime.de> wrote:
> 
>> Hi.
> 
> Hi!
> 
>> I'm using Tapestry 5.3.7 with JBOSS 7 application server. My log4j 
>> configuration don*t work.
> 
> I'm sorry, but this question is related to log4j, not Tapestry, so it's off-topic and shouldn't have been posted here. And you didn't even describe what do you mean by "doesn't work", so even if it were on-topic we wouldn't be able to help.
> 
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer http://machina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


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


AW: log4j.properties configuration not working

Posted by Vasili Petrenko <va...@devintime.de>.
Hi.
thank you. What I should do to control logging log4j in tapestry app. I only put log4j.properties file in resource folder and have no effect.

Must I do more?

-----Ursprüngliche Nachricht-----
Von: Thiago H de Paula Figueiredo [mailto:thiagohp@gmail.com] 
Gesendet: Mittwoch, 26. März 2014 12:54
An: Tapestry users
Betreff: Re: log4j.properties configuration not working

On Wed, 26 Mar 2014 07:59:58 -0300, Vasili Petrenko <va...@devintime.de> wrote:

> Hi.

Hi!

> I'm using Tapestry 5.3.7 with JBOSS 7 application server. My log4j 
> configuration don*t work.

I'm sorry, but this question is related to log4j, not Tapestry, so it's off-topic and shouldn't have been posted here. And you didn't even describe what do you mean by "doesn't work", so even if it were on-topic we wouldn't be able to help.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer http://machina.com.br

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




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


Re: log4j.properties configuration not working

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 26 Mar 2014 07:59:58 -0300, Vasili Petrenko  
<va...@devintime.de> wrote:

> Hi.

Hi!

> I'm using Tapestry 5.3.7 with JBOSS 7 application server. My log4j
> configuration don*t work.

I'm sorry, but this question is related to log4j, not Tapestry, so it's  
off-topic and shouldn't have been posted here. And you didn't even  
describe what do you mean by "doesn't work", so even if it were on-topic  
we wouldn't be able to help.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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