File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes SLF4J, Logback configuration on JBoss 5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "SLF4J, Logback configuration on JBoss 5.1" Watch "SLF4J, Logback configuration on JBoss 5.1" New topic

SLF4J, Logback configuration on JBoss 5.1

Chandrasekhar Aadhanapattu

Joined: Feb 29, 2012
Posts: 16

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.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

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.

JBoss In Action
I agree. Here's the link:
subject: SLF4J, Logback configuration on JBoss 5.1
It's not a secret anymore!