jboss - custom appender log4j settings -urgent

Posted on 2006-04-13
Last Modified: 2011-09-20
Hi All
I am deploying my application on jboss server.I have written a custom appender, which I want to configure in log4j.xml  and I have added that in the following manner: when my server starts up it reads starts up the paender straight away and throws error and hence application is not deployed.As you can see below Iam trying to limit the scope to com.restart.WriteRestartLog class but it does not work any ideas please

<appender name="RESTART" class="com.RestartFileLogAppender">
     <param name="directory" value="${jboss.server.home.dir}"/>
     <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%m%n"/>

   <logger name="com.restart.WriteRestartLog" additivity="false">
      <level value="RESTART"/>
      <appender-ref ref="RESTART"/>

   <category name="com.RestartFileLogAppender">
         <priority value="RESTART"/>
         <appender-ref ref="RESTART"/>
Question by:dmore
    1 Comment
    LVL 30

    Accepted Solution

    >> Iam trying to limit the scope to com.restart.WriteRestartLog

    >> class="com.RestartFileLogAppender">
    >> name="com.RestartFileLogAppender">

    Should that also have com.restart as the package name?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now