Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7039275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:46:40+00:00 2026-05-28T01:46:40+00:00

I would like to ask you a question about logging provided jars. I have

  • 0

I would like to ask you a question about logging provided jars.
I have maven application with many dependencies and i need to log it by using logback. I work on jboss 5.1.

Almost everything works perfectly fine. I can log all actions from my packets by using logback.xml file and adequate appenders etc. 🙂
There is one problem – I cannot log org.hibernate actions by using logback. It seems to log itself by using log4j in jboss (jboss-log4j.xml configures that).
In my pom.xml i have org.hibernate in scope provided – it is provided by jboss naturally.

<dependency>
<groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>3.3.1.GA</version>
        <scope>provided</scope>
</dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-annotations</artifactId>
        <version>3.4.0.GA</version>
        <scope>provided</scope>
</dependency>

Snippet from logback.xml

<logger name="org.hibernate" level="TRACE" additivity="false">
    <appender-ref ref="SQL_FILE" />
</logger>

When i delete

<scope>provided</scope> 

from pom.xml it starts to log using logback.xml in project configuration. I would do that, but i have to use provided jars instead of my own.

Is there any possibility to log provided jars by using in-project configuration? Or am I doomed and i have to use log4j configuration in jboss directory?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:46:40+00:00Added an answer on May 28, 2026 at 1:46 am

    To my knowledge, you cannot change the logging configuration of Hibernate which is packaged with JBoss. This Hibernate classes are shared among applications and it’s logging sybsystem has been initialized earlier than your application has been deployed. When you remove <provided> scope Hibernate becomes the part of your application deployment and is initialized when your application is started. In this case you can re-configure the logging. Hibernate uses slf4j logger, look around how it can be configured.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to ask a question about triggers. Let's say that I have
I would like to ask a question about correct way of canceling socket operations
I would like to ask a question about a new and large scale web
I would like to ask a theoritical question about how some web sites work.
I would like to ask something about query using mysql I have this table
I am new to iPhone development. I have a question would like to ask.
I would like to ask you a question about implementing mutual authentication with Kerberos,
There are some discussions about the same question but I would like to ask
I would like to ask a question. Now i'm training about iPhone Programming. I'm
Just like Carl's question over here I would like to ask you (because I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.