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 8695639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:05:14+00:00 2026-06-13T01:05:14+00:00

Forewarning: I am new to log4j logging and well logging in general and apologize

  • 0

Forewarning: I am new to log4j logging and well logging in general and apologize for my ignorance.

When ever I run my program from a .jar I get a “jackrabbit.log_IS_UNDEFINED” file in the directory where my program was ran. This log file is Extremely large(300MB+) and filling up my drive. I can see that this file has DEBUG level logs in it from several different libraries that I am using. I wish to rid myself of this “jackrabbit.log_IS_UNDEFINED” file and log only ERROR level logs or above to my own file on another drive. eg. (/smb01/Aggregator.log).
Any Help would be Greatly Appreciated.

Also when I run the jar from the command line I get a Log4j Error:

log4j:ERROR Root level cannot be inherited. Ignoring directive.

I do want/have to specify my own config file so we can log our own errors.
I have inherited this config file.
Log4j.xml Config file:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- Appender Types: 
    <ConsoleAppender> org.apache.log4j.ConsoleAppender</ConsoleAppender> 
    <FileAppender> org.apache.log4j.FileAppender</FileAppender>
    <JDBCAppender> org.apache.log4j.jdbc.JDBCAppender</JDBCAppender>
    <AsyncAppender> org.apache.log4j.AsyncAppender</AsyncAppender> 
    <JMSAppender> org.apache.log4j.net.JMSAppender</JMSAppender>
    <LF5Appender> org.apache.log4j.lf5.LF5Appender</LF5Appender>
    <NTEventLogAppender> org.apache.log4j.nt.NTEventLogAppender</NTEventLogAppender> 
    <NullAppender> org.apache.log4j.varia.NullAppender</NullAppender>
    <SMTPAppender> org.apache.log4j.net.SMTPAppender</SMTPAppender>
    <SocketAppender> org.apache.log4j.net.SocketAppender</SocketAppender> 
    <SocketHubAppender> org.apache.log4j.net.SocketHubAppender</SocketHubAppender> 
    <SyslogAppender> org.apache.log4j.net.SyslogAppender</SyslogAppender>
    <TelnetAppender> org.apache.log4j.net.TelnetAppender</TelnetAppender>
    <WriterAppender> org.apache.log4j.WriterAppender</WriterAppender> -->
<!-- (all|debug|info|warn|error|fatal|off|null) "null" -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
    debug="false" threshold="fatal">

    <!-- Appenders -->
    <appender name="console" class="org.apache.log4j.ConsoleAppender">
        <param name="Target" value="System.out" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
        </layout>
    </appender>

    <appender name="FA" class="org.apache.log4j.FileAppender">
        <param name="File" value="sample.log" />
        <param name="Threshold" value="WARN" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n" />
        </layout>
    </appender>

    <appender name="ROLL" class="org.apache.log4j.RollingFileAppender">
        <param name="file" value="/smb01/Aggregator.log" /> <!-- The active file to log to -->
        <param name="encoding" value="UTF-8"/>
        <param name="append" value="true" />
        <param name="Threshold" value="WARN" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ISO8601}|%5p|%t| %c{1} | %m%n"/>
        </layout>
    </appender>

    <appender name="CustomerReport" class="org.apache.log4j.FileAppender">
        <param name="file" value="CustomerReport.csv" />
        <param name="append" value="FALSE" />
        <param name="Threshold" value="INFO" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%m%n" />
        </layout>
    </appender>

    <appender name="rootAppender" class="org.apache.log4j.varia.NullAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="[%-5p] %c{1} - %m%n" />
        </layout>
    </appender>


    <!-- Loggers -->
    <!-- Standard Levels: DEBUG < INFO < WARN < ERROR < FATAL -->
    <logger name="com.group">
        <level value="info" />
        <appender-ref ref="console" />
        <appender-ref ref="ROLL" />
    </logger>

    <logger name="com.group.main">
        <level value="info" />
        <appender-ref ref="console" />
        <appender-ref ref="ROLL" />
    </logger>

    <logger name="com.group.customerLogger">
        <level value="info"/>
        <appender-ref ref="CustomerReport"/>
    </logger>

    <!-- Root Logger -->
    <root>
        <level value="FATAL"/>
        <appender-ref ref="rootAppender"/>
    </root>

</log4j:configuration>

Since this is for my work I cant share all of my code but here are the key bits:

import org.apache.log4j.xml.DOMConfigurator;
import org.apache.log4j.*;
import org.apache.log4j.Logger;

public class Main {
  public static Logger logger = Logger.getLogger("com.group.main");

  public static void main(String[] args) {

    // setup the log4j system so we can log stuff.
    org.apache.log4j.extras.DOMConfigurator.configure(args[1]);
    .
    .
    logger.debug("debug message!");
    .
    .
    .
  }

The files Aggregator.log and CustomerReport.csv do Show up where they are supposed to but nothing is logged/written to them. I have been able to look at the “jackrabbit.log_IS_UNDEFINED” file and it has all of my logging in it.

Libraries that deal with log4j that i’m using(listed via build path order):

  • log4j-1.2.17.jar
  • apache-log4j-extras-1.1.jar
  • jackrabbit-standalone-2.2.10.jar

More Info

I found another xml file with what appears to be my culprit: logback.xml

<configuration>
    <appender name="jackrabbit" class="ch.qos.logback.core.FileAppender">
        <file>${jackrabbit.log}</file>
        <encoder>
            <pattern>
                %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n
            </pattern>
        </encoder>
    </appender>

    <appender name="jetty" class="ch.qos.logback.core.FileAppender">
        <file>${jetty.log}</file>
        <encoder>
            <pattern>
                %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n
            </pattern>
        </encoder>
    </appender>


    <logger name="org.mortbay.log" level="${log.level}" additivity="false">
        <appender-ref ref="jetty"/>
    </logger>

    <root level="${log.level}">
        <appender-ref ref="jackrabbit"/>
    </root>
</configuration>

Can I (edit/remove/workaround) this file?

  • 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-06-13T01:05:15+00:00Added an answer on June 13, 2026 at 1:05 am

    I ended up not using jackrabbit-standalone-2.2.10.jar which eliminated the error altogether. Instead I imported only specific classes from various other libraries included in CQ 5.4.
    I Still have the same setup as shown above except for the jackrabbit-standalone-2.2.10.jar.
    @TedTrippin, Thank you for your time and consideration.

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

Sidebar

Related Questions

Lets say that I purchased a new domain (somedomain.com) from a domain registar and
I'm new to both git and OSX, coming from Ubuntu and svn. When I
New here (this forum and Xcode in general), so bear with me. I've spent
I just started hosting my app on a new domain. I selected a url
I am very new to JMS and ESB. I am using activemq as JMS
I'm new to deploying with Capistrano, and I'm trying the following: deploy.rb: set :application,
I am very new to both node and Javascript, and am completely lost when
I have an activity which, when an item is selected. Starts a new thread
I'm new to the .Net world and I'm trying to figure out how inheritance
When I research a new library, I sometimes find it hard to locate the

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.