Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SLF4J, Logback configuration on JBoss 5.1

 
Chandrasekhar Aadhanapattu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have requirement to use SLF4J. So I am using Logback as backend. I have SLF4J version 1.5.11 and logback 0.9.18.

I am getting the log with double timestamp as follows:
09:55:24,777 INFO [STDOUT] 09:55:24.777 [http-localhost%] DEBUG c.m.e.m.a.a.UpdateBusinessPartnerContactAction - EditCreatePartner method in UpdateBusinessPartnerContactAction called.

Jboss is superseding our configuration for logging.

Please let me know where it has gone wrong.

Thanks,
Chaatna
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss AS configures its logging to capture any output to stdout/stderr, which explains the "[STDOUT]" in the log entry. As far as I know, there is no way to prevent it from doing this short of modifying the JBoss AS code itself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic